Get SQL statement after parameters added

南楼画角 提交于 2019-12-11 12:30:10

问题


Is there a way (in MySQL) to get the pure SQL statement after parameters have been added? I'm having issues with one of my statements once I start using parameters, and I want to see what's being executed. Of course it has to do with dates.

Using MySQL .NET Connector. I have access to MySQL server, and I use SQLYog to administrate.

Thanks! -Steve


回答1:


You can use the query logs option to have all queries issued to the server logged.

See http://dev.mysql.com/doc/refman/5.1/en/server-logs.html for information about the log types and how to enable and configure them.



来源:https://stackoverflow.com/questions/1408169/get-sql-statement-after-parameters-added

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!