求sql 语句 返回数字 就像select count(*) from table 一样结果是一个数字
答案:3 悬赏:0
解决时间 2021-02-09 23:31
- 提问者网友:浪荡羁士
- 2021-02-09 15:45
求sql 语句 返回数字 就像select count(*) from table 一样结果是一个数字
最佳答案
- 二级知识专家网友:茫然不知崩溃
- 2021-02-09 16:00
select count(zt) from
(select top 100 * from table )
b where zt='2'
(select top 100 * from table )
b where zt='2'
全部回答
- 1楼网友:滚刀废物浮浪人
- 2021-02-09 17:26
declare @cnt int
select @cnt=count(*) from table
print(@cnt)
- 2楼网友:哥在撩妹请勿打扰
- 2021-02-09 16:59
个人建议这样用比理合理
select count(distinct (aa)) +max(case when aa is null then 1 else 0 end)
from table1
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |