• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

我们将共同携手迎接你的到来!


新的一年
新的开始
新的目标
新的收获

kevin 愛戀 20140103

博客园          联系   管理     
2011年1月21日
多行 并 一行查询
摘要: select count( case when status='1' then number1 end) as '检查不及格', count(case when status='2' then number1 end) as '终止作废', sum( case when status='3' then number2 end) as '遗失作废' from table1 阅读全文
posted @ 2011-01-21 18:51 kevin_20131022 阅读(232) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3