echo $temp_chat_query->createCommand()->getRawSql(); 转载于:https://www.cnblogs.com/lyy-php/p/4974429.html