我想使用 DQL 的 COUNT 命令获得我找到的值。通常我在 getInt() getString() 方法中输入我想要访问的列名。当没有特定的列名时我应该做什么。
{
String query = "select count(*) as count from dm_user;";
return query;
}
获取结果的代码
{
IDfCollection total = dql.execute(session, IDfQuery.DF_READ_QUERY);
while (total.next()){
cint = total.getInt("count");
}
雄猫结果
DfException:: 线程:http-8080-2;MSG: [DM_QUERY_E_SYNTAX]error: "A Parser Error (syntax error) has been occurred in the near: select count(*) as count"; 错误代码:100;下一个:空