select  ID,Username,namer=(case when(score<='')    then '实习'

                                when(score>''  and  score<='' )   then '赤脚医生'    

                                when(score>''  and score<='' )   then '村卫生员' 

                                when(score>''  and score<='' )   then '乡卫生员' 

                                when(score>''  and score<='' )   then '镇卫生员'

                                when(score>''  and score<='' )   then '医师'

                                when(score>''  and score<='' )   then '主治医师'

                                when(score>''  and score<='' )   then '副主任医师'

                                when(score>''  and score<='' )   then '主任医师'

                                when(score>''  and score<='' )   then '健康大使'

                                else   '健康大使'  end )FROM  jk01_YiWen_Question
WHERE UserID = dbo.jk01_Member.ID) as questionnum

例子来源于:SQL利用Case When Then多条件判断SQL 语句

最新文章

  1. iOS 解决LaunchScreen中图片加载黑屏问题
  2. Linux下面使用rpm命令
  3. 第十二篇 SQL Server代理多服务器管理
  4. studio-引入外来包
  5. Ubuntu关闭图形界面
  6. Asp.net 图片文件防盗链介绍
  7. 2014年1月24日 Oracle 连接查询与子查询
  8. win10环境下python3.5安装步骤
  9. windows平台下python 打包成exe可执行文件
  10. Game Engine Architecture 1
  11. CF 1131C Birthday
  12. Linux 其它知识点
  13. luogu P4161 [SCOI2009]游戏
  14. 跟bWAPP学WEB安全(PHP代码)--终结篇:文件目录遍历、文件上传、SSRF、CSRF、XXE、文件包含
  15. Cross-platform Tools
  16. centos php 运行环境搭建
  17. java自学-运算符
  18. Web安全0003 - MySQL SQL注入 - union查询核心语法
  19. Java 爬虫之Webmagic
  20. Python大牛开小灶,一对一问答

热门文章

  1. DDD学习笔录——简介DDD的战术模式、问题空间和解空间
  2. C++深度解析教程学习笔记(2)C++中的引用
  3. SSH框架搭建步骤
  4. linux 创建docker基础镜像
  5. day36-hibernate检索和优化 01-上次课内容回顾
  6. WCF客户端调用并行最大同时只支持两个请求
  7. Windows系统 安装 CMake
  8. cmake中设置ELF文件加载动态库的位置
  9. ZROI2018普转提day6t3
  10. Java Collection.RP