SQL Server中【case...end】的用法
摘要:在SQL Server中 case...end 语句,一般有如下两种用法: 1、相当于C#中if...else,例: 这种写法可以用来做区间或等值的判断。 2、相当于C#中的switch...case,例: 这种写法只能用来做等值的判断。 注意事项:在 case...end 语句中,then后面值的
阅读全文
posted @ 2017-02-26 12:15
posted @ 2017-02-26 12:15
posted @ 2017-02-23 10:30
posted @ 2017-02-22 20:55
posted @ 2017-02-22 13:01
posted @ 2017-02-06 12:33