로딩
티스토리 데이터 처리 중입니다.

240304 DB - SQL활용 데이터정의어(DDL) - table3

 240304 DB - SQL활용 데이터정의어(DDL) - table3

테이블 수정(alter table) ※desc 테이블명은 제약 조건은 not null만 알 수 있음, 어느 조건이 있는지 확인하기 위해서는 db사전을 이용해야함 -- db사전 통해 제약 조건을 확인 user_constraints desc user_constaraints; -- constraint_name, constraint_type, table_name, search_condition(ck), r_constraint_name(fk 참조)을 많이 사용! select constraint_name, constraint_type, search_condition, r_constraint_name from user_constraints where lower(table_name) = 'employees'; 부모테이.....