????Oracle??????????????????
???????????? ???????[ 2014/12/1 11:18:17 ] ????????????? Oracle ????
????????????????????????????в?????????????????
SQL> desc child;
Name Type Nullable Default Comments
------ ------------- -------- ------- --------
C_ID NUMBER(3)
V_ID NUMBER(3) Y
C_NAME VARCHAR2(100) Y
SQL> alter table child modify v_id not null;
Table altered
SQL> desc child;
Name Type Nullable Default Comments
------ ------------- -------- ------- --------
C_ID NUMBER(3)
V_ID NUMBER(3)
C_NAME VARCHAR2(100) Y
SQL> delete prim where v_id=2;
delete prim where v_id=2
ORA-01407: ??????? ("A"."CHILD"."V_ID")? NULL
???????????~
?????塢????е?on update cascade
????On update cascade?????“????????”????????????????д?????????????????????????????????????????????????????????????????????????????????????
????SQL> alter table child add constraint FK_CHILD_PRIM foreign key(v_id) references prim(v_id) on update cascade;
????alter table child add constraint FK_CHILD_PRIM foreign key(v_id) references prim(v_id) on update cascade
????ORA-00905: ???????
????????Oracle?汾?У???????????on update cascade?????Oracle?????????ж???????????????????????????????У???????????????????????????????????????汾?У????????????????
????????????
????Oracle?????????????????????????????????????????????????У????????????“????????????????”????????????????????????????????“??????”????????????????????????????????Ч????????????????????????“??????”????????????????????????????????????
??????????????????“??????????????”??????????????????ù???У???????????????????????????в?????????????????????????????????????????????????????????????????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11