SQL Server中使用Exists,注意不是“Exist”

it2022-05-05  118

if Exists (SELECT newid        FROM invoice        WHERE newid = 13)  begin    select '对'  endelse  begin    select '错'  end

转载于:https://www.cnblogs.com/binaryworms/archive/2010/03/26/1697134.html

相关资源:sql exists和not exists用法

最新回复(0)