Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #11

Open
bshclosegrip opened this issue May 17, 2021 · 0 comments
Open

test #11

bshclosegrip opened this issue May 17, 2021 · 0 comments

Comments

@bshclosegrip
Copy link
Owner

문제

DB구현_21 05 17

[문제1]
원인 : 부모테이블의 존재하지 않은 값을 자식테이블에 넣으려고 할떄 에러가 발생

해결 : 외래키(Foreign Key)를 삭제

ALTER TABLE TEMP1019 DROP CONSTRAINT FK_COL01;

[문제2]

insert into score values ('hong', …) ;

[문제3]

alter table grade disable constraint student_grade_ck;;
  • 참고
ALTER column grade DISABLE CONSTRAINT student_grade_ck;
DROP TABLE 테이블명 CASCADE CONSTRAINTS;
grade constraint student_grade_ck references 
department_id CONSTRAINT fk_deptno REFERENCES departments (department_id) ); /인라인/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant