Number of records

xiaoxiao2021-03-06  101

Rs.last ();

INTITROWCOUNT = rGETROW ();

Out.println (IntrowCount);

Rs.beforefirst ();

While (rs.next ())

{

......

}

Move the pointer to the end, you can calculate the number of total records

Before rs.beforefirst (), it should be said that the RS recordset is empty, otherwise it will be wrong!

In the SQL statement of the database Oracle, if Chinese is involved, you must pay attention to the problem of the character set.

转载请注明原文地址:https://www.9cbs.com/read-105224.html

New Post(0)