I would like to verify that the sql query I'm sending to Oracle is the one I actually want. I was wondering how do I do that? I can print out the statement before I bind the variables, ie. I get this from the console:
UPDATE MY_TABLE=tableName SET COL1=?, COL2=?, COL3=? WHERE PK=?
But I would like to see the actual statement after I have set the variables to the values.
Try using log4jdbc
By using this you can also see the bind parameters etc along with the sql output.
一个更好的工具可能是p6spy 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.