setFetchDirection
void setFetchDirection(int direction)
                       throws SQLExceptionGives the driver a hint as to the direction in which rows will be processed in ResultSet objects created using this Statement object. The default value is ResultSet.FETCH_FORWARD. 
Note that this method sets the default fetch direction for result sets generated by this Statement object. Each result set has its own methods for getting and setting its own fetch direction. 
Parameters:
direction - the initial direction for processing rows 
Throws: 
SQLException - if a database access error occurs or the given direction is not one of ResultSet.FETCH_FORWARD, ResultSet.FETCH_REVERSE, or ResultSet.FETCH_UNKNOWN
Since: 
1.2 
See Also:
getFetchDirection()
以上是setFetchDirection文档
我在查询数据库时需要一列一列地查,不知道怎么能改指针还是游标位置什么的
rs.beforeFirst();
rs.first();
都不行
不管stmt.setFetchDirection怎样设置总是返回java.sql.SQLException: Result set type is TYPE_FORWARD_ONLY 
这是怎么回事?该怎样解决?本人新手..