sql如何让count语句的结果的第一列变成想要的值

比如我查询,Select count(*) from table where table.add like '%西城%'

结果显示为: 无列名
1 113

现在我想要结果显示为:
无列名
西城 113

该怎么写呢

Select '西城' as name,count(*) num from table where table.add like '%西城%'
温馨提示:答案为网友推荐,仅供参考
第1个回答  2014-03-25
楼上正解!

爱云一万年
相似回答