为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。 【DM版本】:8 【操作系统】: 【CPU】: 【问题描述】*:
[执行语句1]: select id,count(distinct name) from sysobjects 执行失败(语句1) 第1 行附近出现错误[-4080]: 不是 GROUP BY 表达式
[执行语句1]: select id,count(distinct name) from sysobjects group by id; 执行成功, 执行耗时3毫秒. 执行号:510
1条语句执行成功
[执行语句1]:
select id,count(distinct name) from sysobjects
执行失败(语句1)
第1 行附近出现错误[-4080]:
不是 GROUP BY 表达式
[执行语句1]:
select id,count(distinct name) from sysobjects group by id;
执行成功, 执行耗时3毫秒. 执行号:510
1条语句执行成功