34,594
社区成员
发帖
与我相关
我的任务
分享
if exists (select 1 form table1 where col='abc')
begin
print '存在'
end
else
begin
print '不存在'
end
--2.2 运算符
--谓词:in,between,like
--比较运算符:= > < >= <= <>
--算术运算符:+ - * / %
--运算符的优先级:
--1 ()
--2 * / %
--3 + -
--4 = > < >= <= <>
--5 not
--6 and
--7 or in between like
--8 =