resultSetType resultSetConcurrency

java.sql.Connection.creatStatement(int resultSetType,int resultSetConcurrency)中参数的含义
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.
 

你可能感兴趣的:(scroll)