22,209
社区成员
发帖
与我相关
我的任务
分享
if @name is null
begin
...
end
else if @name=''
begin
...
end
else
begin
....
end
where A is null 當A為null時
where A='' 當A為空時
where A='某個值' 當A有值時
--3,有值
where len(col)>0
--1,null
where col is null
--2,“”(空字符串)
where len(col)=0
--3,有值
where col is not null