Topic: 请教高手*****jdbc问题

  Print this page

1.请教高手*****jdbc问题 Copy to clipboard
Posted by: zhang_e_trust04
Posted on: 2004-09-23 10:32

1.加载数据库驱动器中有class.forName(driver);和DriverManager.registerDriver(driver);有什么区别?
2.建立数据库连接的时候.createStatement(),和prepareStatement()有什么区别.

2.Re:请教高手*****jdbc问题 [Re: zhang_e_trust04] Copy to clipboard
Posted by: eterne
Posted on: 2004-09-23 13:23

1,好像没区别
2,preparedStatement预编译的-----好像是这个说法----执行起来一般来说会快点


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923