我常用的方法时:
v_count int;
select count(id) into v_count from tableName;if(v_count > 0) then
--
else
--
end if;有没有类似Sql server的exists函数?在oracle中我使用如下语句报错呢.
if exists (select id from tablename) then
---
end if;
v_count int;
select count(id) into v_count from tableName;if(v_count > 0) then
--
else
--
end if;有没有类似Sql server的exists函数?在oracle中我使用如下语句报错呢.
if exists (select id from tablename) then
---
end if;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货