--UNIQUE INDEX
CREATE UNIQUE INDEX TEST_PK ON TEST (IDX ASC)
TABLESPACE "TESTSPACE";
--INDEX
CREATE INDEX TEST_TITLE ON TEST (TITLE ASC)
TABLESPACE "TESTSPACE";
--PRIMARY KEY
ALTER TABLE "TEST" ADD CONSTRAINT "TEST_PK" PRIMARY KEY ("IDX");
--NOT NULL
ALTER TABLE "TEST" ADD CONSTRAINT "SYS_C0036269" CHECK ("IDX" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "TEST" ADD CONSTRAINT "SYS_C0036270" CHECK ("TITLE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
ALTER TABLE "TEST" ADD CONSTRAINT "SYS_C0036271" CHECK ("CONTENT" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE;
'ORACLE' 카테고리의 다른 글
호스트네임변경 후 “ORA-24454: client host name is not set” 에러 발생할 때 (0) | 2019.01.08 |
---|---|
오라클 create table with comment 기본 (0) | 2019.01.08 |
오라클 시퀀스 (0) | 2019.01.08 |
오라클 11g to 9i 호환성표 (0) | 2019.01.08 |
오라클 버전별 출시년도 (0) | 2019.01.08 |