sql表中同一个用户名有不同条记录,每个记录都有数量这个字段,我想求按用户名查处每个记录数量的总和
我写的这个是错的,求指教selectCount(*)fromjieyuejiluwherejieyueshuliang=(selectjieyuerenyonghumin...
我写的这个是错的,求指教
select Count(*) from jieyuejilu where jieyueshuliang=(select jieyuerenyonghuming from jieyuejilu where jieyuerenyonghuming= 'WW' ); 展开
select Count(*) from jieyuejilu where jieyueshuliang=(select jieyuerenyonghuming from jieyuejilu where jieyuerenyonghuming= 'WW' ); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询