public int getRow()
throws SQLException
Retrieves the current row number. The first row is number 1, the second number 2, and so on. 所以你没有rs.next()过的话,当然应该是0
throws SQLException
Retrieves the current row number. The first row is number 1, the second number 2, and so on. 所以你没有rs.next()过的话,当然应该是0
select count(*) from xxx
-----------------
A abc
A abc
B bb
B bb
我想用select count(?) from A
获得两条记录:
-----------
A abc
B bb
SQL语句怎么写