
在oracle中语句报未找到关键字,在mysql中没有错
1个回答
展开全部
mysql本来语法就有很多不是很规范
select create_user,count(*) from hp_publicity_activity_facility group by create_user
这样吧,查询结果只有2个字段,想像你之前那样显示,请描述需求。
更多追问追答
追问
我想返回表中去重后的所有字段数据,该怎么写?
追答
select a.*,b.cnt from hp_publicity_activity_facility a,
(select create_user,count(*) cnt from hp_publicity_activity_facility group by create_user) b
where a.create_user=b.create_user
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询