java.sql.Connection.creatStatement(int resultSetType,int resultSetConcurrency)中参数的含义

类别:Java 点击:0 评论:0 推荐:
resultSetType
TYPE_FORWARD_ONLY告诉系统读取资料列时只向前卷动.
TYPE_SCROLL_SENSITIVE修改後马上反映在ResultSet中.
TYPE_SCROLL_INSENSITIVE修改後不反映在ResultSet中,除非重开statement.

resultSetConcurrency
CONCUR_READ_ONLY告诉系统将不修改ResutlSet
CONCUR_UPDATABLE告诉系统将会修改ResutlSet
Default
如果不加任何参数,预设是TYPE_FORWARD_ONLY及CONCUR_READ_ONLY.

本文地址:http://com.8s8s.com/it/it13926.htm