select type_id,message from t_case group by type_id,message
or
select type_id,count(message) from t_case group by type_id
总之,group by 后面必须是select中所有非函数字段
[Quote=引用 2 楼 lss652019 的回复:]
不行啊。
我是这样写的:
select type_id,message from t_case group by type_id
不知道正不正确。
[/Quote]
不正确
select type_id from t_case group by type_id
贴记录及要求结果出来看看
[Quote=引用 2 楼 lss652019 的回复:]
不行啊。
我是这样写的:
select type_id,message from t_case group by type_id
不知道正不正确。
[/Quote]
不正确
select type_id from t_case group by type_id
贴记录及要求结果出来看看
[Quote=引用 2 楼 lss652019 的回复:]
不行啊。
我是这样写的:
select type_id,message from t_case group by type_id
不知道正不正确。
[/Quote]
不正确
select type_id from t_case group by type_id
贴记录及要求结果出来看看