本文主要是介绍PreparedStatement log,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
打印SQL完整语句:
SELECT * FROM USER WHERE 1 = 1 AND code = ? AND password = ?
param 0:admin
param 1:123456
SELECT * FROM type WHERE 1 = 1
SELECT * FROM type WHERE 1 = 1 AND id = ?
param 0:581f5fb5-9731-4086-b9ed-5763ba4001ec
sql : com.mysql.jdbc.JDBC4PreparedStatement@27db6486: UPDATE type SET code = 'zwf', name = '333337777777' WHERE id = '581f5fb5-9731-4086-b9ed-5763ba4001ec'
SELECT * FROM type WHERE 1 = 1
这篇关于PreparedStatement log的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!