您的位置:首页 > 数据库

sql查询语句没有结果时赋值为0

2017-10-18 20:57 176 查看
if exists(select id from tablename where id = value)
begin
select id from hrmresource where id = value
end
else
select 0 as id
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  sql 没有结果集
相关文章推荐