例如
String sql="select count(title) from article";
Statement stmt=conn.createStatement();
?=stmt.executeQuery(sql);
问号那要怎么写?我要取count(title)值
String sql="select count(title) from article";
Statement stmt=conn.createStatement();
?=stmt.executeQuery(sql);
问号那要怎么写?我要取count(title)值
if (rset->next())
{
int n = rset->getInt(1);
}