- 博客(1)
- 收藏
- 关注
原创 删表时遇见主键存在的报错:ORA-02449:unique/primary keys in table referenced by foreign keys
delete from 表名;(删除表中所有数据,第一步:让主键失效:alter table 表名 disable primary key cascade;第二步:删除数据:delete from 表名 where id = ‘xx’;第三步:让主键生效:alter table 表名 enable primary key;没有备份的话谨慎使用。
2022-09-02 10:54:28 347 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人