关联数据删除 delete时加个判断where a.地址 not in (select 地址 from b) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在删除A表数据的过程中:create or replace procdure proc_name(p_id in number) as p_count number(8);begin select count(*) into p_count from tableB where b.id=p_id; if p_count=0 then delete from tablea where a.id=p_id; else null;--这里不允许删除 end if; ....end; 关于Oracle数据库数据自动定时备份的问题 ORA-06550,PLS-00103错误,求助! 请教一sql 急!急!oracle存储过程里,定义字符串后,赋值含有decode的会不支持呢,为什么呢,请赐教! 怎么实现交叉表形式啊?具体见内容 请教OracleOraHome81ManagementServer 总是启动失败问题? 关于自动编号的问题 JOB里每7分钟执行一次,该怎么写啊 解决date类型中的2000年问题??? 帮忙把SQL格式改为ORACLE格式 怎么改变一个表的结构让它有个自增量的字段? 主键和外部键问题
create or replace procdure proc_name(p_id in number) as
p_count number(8);
begin
select count(*) into p_count from tableB where b.id=p_id;
if p_count=0 then
delete from tablea where a.id=p_id;
else
null;--这里不允许删除
end if;
....
end;