摘要:
insert into new_order select o_id,o_d_id,o_w_id from order1 where rownum<2; 阅读全文
摘要:
1、ORACLE数据库中的外键约束名都在表user_constraints中可以查到。其中constraint_type='R'表示是外键约束。2、启用外键约束的命令为:alter table table_name enable constraint constraint_name3、禁用外键约束的命令为:alter table table_name disable constraint constraint_name4、然后再用SQL查出数据库中所以外键的约束名:select 'alter table '||table_name||' enable c 阅读全文