这个在oracle存储过程中用什么实现? IF NOT EXISTS(select * from emp)我需要判断这个条件! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 v_cnt number;select count(*) into v_cnt from emp;IF v_cnt <1 then............ end if --你是判断表是否有数据?declarenum number;beginselect count(1) into num from emp ;if num<0 then insert into emp values(.....);end if;end; A,B表是主子表关系,需要把A,B表中的数据分别备份到A,B表 关于关系代数的除法运算的SQL实现 请教个sqlldr 使用direct选项的问题! Oracle clob类型字段的插入问题 请问如何获取除DB_NAME以外的ORACLE服务器信息,如IP地址 关于获得毫秒问题 current_timestamp rollback 是否关闭游标 请教大家一个问题,当前的前100天到当前,用sql语句的时候日期范围怎么表达? 新手问题:Oracle 数据如何备份和还原 一个select语句? oracle 事务问题 一个存储过程
select count(*) into v_cnt from emp;
IF v_cnt <1 then
............
end if
declare
num number;
begin
select count(1) into num from emp ;
if num<0 then
insert into emp values(.....);
end if;
end;