15个经常使用的SQL Server高级语法

case …. end (具体的值) case 后面有值,至关于C#中的switch case 注意: case 后必须有条件,而且when 后面必须是值不能为条件 select name , case level when 1 then ‘骨灰’ when 2 then ‘大虾’ when 3 then ‘菜鸟’ end as ‘头衔’ from [user]css case …end (范围)
相关文章
相关标签/搜索