注册

判定查询结果存在执行语句1否则执行语句2

景浩 2024/02/02 404 1

if exists( select * from table where xm='张三')
begin
执行语句1
end else begin
执行语句2
end

回答 0
暂无回答
扫一扫
联系客服