1.PreparedStatement:
带?参数的使用prepareStatement。这也是使用最多的。
2.statement:
不带参数,例如查所用,不需要到任何参数。使用statement。
3.CallableStatement:
调用存储过程的CallableStatement。特别注意,存储过程的输出参数需要先进行注册。
摘自:
http://blog.csdn.net/hsp1990/article/details/7934029
statement、prepareStatement、callableStatement的使用
猜你喜欢
转载自jackleechina.iteye.com/blog/1772014
今日推荐
周排行