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 

猜你喜欢

转载自blog.csdn.net/qq_38723677/article/details/111150563