- 테이블 작성 고급 - 무결성 - 기본키 생성 예제 create table test1 ( id number(4) primary key not null ,name varchar2(100) ,price number(8) ) desc user_constraints select constraint_name, table_name, constraint_type from user_constraints; create table test2 ( id number(4) constraint pk_test2_id primary key not null ,name varchar2(100) ,price number(8) ) desc user_constraints select constraint_name, table_name, constraint_type from user_constraints; - 두개의 필드를 한개의 기본키 작성 create table test3 ( gubun number(4) not null ,code char(4) not null ,name varchar2(100) not null ,constraint pk_test3_key primary key (gubun, code) ) desc user_constraints select constraint_name, table_name, constraint_type from user_constraints; -이미 작성된 테이블에 기본키 작성 create table test4 ( id number(4) not null ,name varchar2(100) ,price number(8) ); select constraint_name, table_name, constraint_type from user_constraints; alter table test4 add constraint pk_test4_key primary key (id); select constraint_name, ta...