public sun.jdbc.rowset.CachedRowSet dbrCachedRowSet(String rSql) throws SysExcpt
{
ResultSet lRSet = null;
Statement lStat = null;
try {
lStat = gConn.createStatement();
lRSet = lStat.executeQuery(rSql);
sun.jdbc.rowset.CachedRowSet crs = new sun.jdbc.rowset.CachedRowSet();
crs.populate(lRSet);
return crs;
}
{
ResultSet lRSet = null;
Statement lStat = null;
try {
lStat = gConn.createStatement();
lRSet = lStat.executeQuery(rSql);
sun.jdbc.rowset.CachedRowSet crs = new sun.jdbc.rowset.CachedRowSet();
crs.populate(lRSet);
return crs;
}
我试了一下你的方法,可还是不行啊,我用的是sql server2000