CREATE TABLE TABLE_PERSON
(
ID NUMBER(4) NOT NULL
, NAME VARCHAR2(25)
, AGE NUMBER(5)
, COUNTRY VARCHAR2(20)
, CONSTRAINT PERSON_PK PRIMARY KEY
(
ID
)
ENABLE
);
sequence_demoというOracleシーケンスを作成します。
CREATE SEQUENCE SEQUENCE_DEMO
INCREMENT BY 1
START WITH 1
NOMAXVALUE
NOCYCLE
NOCACHE;