从表 Query1->SQL->Add("delete from rsgl_1 where PYM='"+Edit1->Text+"'" cascade); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 删除并重新建立从表的外键,select * from user_constraints where table_name='RSGL_1' and constraint_type='R';找到该外键的名字,然后:alter table rsgl_2 drop constraint 外键名字;alter table rsgl_2 add constraint 外键名 foreign key (bh) references rsgl_1(bh) on delete cascade;不过,好像你的表2上并没有加外键?那样就简单了,只需要添加外键就行了alter table rsgl_2 add constraint fk_rsgl_2$_bh foreign key (bh) references rsgl_1(bh) on delete cascade;注意:这时候,表1中的bh字段应该是主键或者唯一键 oracle的动态游标是否需要手动关闭 存储过程问题 数据挖掘和统计的大量资料 oracle 安装 samples 数据库 oracle计算日期的问题! SOS!大家帮忙 左连接更新表的数据 如何让一个存储过程像在sql server中那样返回一个结果集,谢谢帮助,在线等..... 触发器问题!!!郁闷啊!! 使用pl/sql developer可以定期执行sql脚本并讲结果自动写入另一个表中吗? 关于varchar2型中''(空字符串)是否等于NULL问题。 新手问题:安装完了oracle817后,是否一定要建立数据库才能使用oralce?
找到该外键的名字,然后:alter table rsgl_2 drop constraint 外键名字;
alter table rsgl_2 add constraint 外键名 foreign key (bh) references rsgl_1(bh) on delete cascade;不过,好像你的表2上并没有加外键?
那样就简单了,只需要添加外键就行了
alter table rsgl_2 add constraint fk_rsgl_2$_bh foreign key (bh) references rsgl_1(bh) on delete cascade;
注意:这时候,表1中的bh字段应该是主键或者唯一键