jdbc获取PreparedStatement最终执行的sql语句

//直接打印PreparedStatement对象
System.out.println(ps);
输出结果:
com.mysql.jdbc.JDBC42PreparedStatement@5f205aa: select * from student where name like '%moyifeng%' order by id limit 0,20 
posted @ 2020-12-14 09:59  莫逸风  阅读(3141)  评论(0编辑  收藏  举报