我正在做一个简单的查询来计算记录...但我在这里得到语法错误:COUNT(field1)。你知道为什么吗?感谢
String sql = "SELECT _id, field1, field2, field3 COUNT(field1)
FROM Appoggio GROUP BY field1 ORDER BY field1 ASC";
答案 0 :(得分:1)
您在field3
之后缺少逗号尝试使用:
String sql =" SELECT _id,field1,field2,field3,COUNT(field1) 来自Appoggio GROUP BY field1 ORDER BY field1 ASC&#34 ;;