ITPub博客

首页 > 应用开发 > IT综合 > case

case

原创 IT综合 作者:RobertDeNiro 时间:2007-03-16 12:29:29 0 删除 编辑

SELECT

sum(case t.station_id
when '00594' then
1
end) A,
sum(case
when t.station_id > '00594' then
1
end) B,
sum(case
when t.station_id < '00594' then
'1'
end) C
FROM db_station t

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8858135/viewspace-905467/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论
  • 博文量
    2
  • 访问量
    1080