更新时间:2023-11-29 18:11:22
它不应该显示计数,它应该显示 1
,因为这个查询要么失败要么结果只有一个排.如果您想知道表中存在多少行 dark_souls2_widgets
那么您可以使用
It shouldn't show the count, it should show 1
, cause this query will either fail or the result will have just one row. If you want to know how many rows exists in your table dark_souls2_widgets
then you could do this with
res = stmt->getResultSet();
while (res->next()) {
cout << res->getInt(1); // getInt(1) returns the first column
}