问题描述:
计算用户留言的总数,select count(user) as total,user from book where user=48 group by user
发现如果“48”用户没有留言的话,就查不到记录,理想是能有反馈的结果,
如
total user
0 48
来自ip:11.117.192.104的同学咨询
问题描述:
计算用户留言的总数,select count(user) as total,user from book where user=48 group by user
发现如果“48”用户没有留言的话,就查不到记录,理想是能有反馈的结果,
如
total user
0 48
◎如果您对该问题有其他更好的理解,希望您回答出来,感谢您的奉献。
>>d:\mydocuments\mypictures\未命名.bmp已知ab=dc,ac=db求证三角形aob和doc全等
>>重新排列单词"tallahassee"请问有多少种不同的排法使得没有两个a是相邻的.另外补充问一下,combinationswithoutrepetition&combinationswithre
>>英语翻译phototype:digitallabprint这个意思是不是照片是复制的?
>>iamanartstudentandipaintalotofpictures中为什么paint用一般时态新概念2第26课这里用完成时不行吗?
>>不同用户有不同要求,怎么说对?”differentuserhasdifferentrequests”还是”differentusershavedifferentrequests”
select case when count(user) >0 then count(user) else 0 end as total,user from book where user=48 group by user
你用类似这样的方法试试看