2011年9月9日

摘要: SelectMethod=cursor1.执行多个Statements的操作的时候用 2.需要手动使用事务的时候使用以上是在使用sqlserver数据库的连接字符串的时候使用过。例如:jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=071008_03;SelectMethod=cursor用SQL Server驱动一次select很多数据最好在connection string中加上SelectMethod=Cursor,以利用服务器端游标加快速度,其实不只sqlserver,oracle的jdbc,只要使用PreparedStat 阅读全文
posted @ 2011-09-09 13:47 伢伢 阅读(572) 评论(0) 推荐(0)

导航