Table 생성 CREATE TABLE test ( key NUMBER NOT NULL PRIMARY KEY, value varchar(50) NOT NULL value2 varchar(50) NOT NULL ); Table 삭제 DROP TABLE test; Table 선택 SELECT * FROM test; Table 요소 삽입 INSERT INTO test(key, value) VALUES (1,'Hello!'); Table 요소 여러개 삽입 INSERT INTO test (key, value) SELECT t.* FROM ( SELECT 1, 'Hello,' FROM DUAL UNION ALL SELECT 2, 'World' FROM DUAL UNION ALL SELECT 3, '!' FROM DUAL )t; Table 요소 삭제 DELETE FROM test WHERE key=1; Table 요소 전체 삭제 DELETE FROM test; Table 요소 수정 UPDATE test SET value='Hello,', value2='Word!' WHERE key=1; Sequence 생성 CREATE SEQUENCE test_seq; Sequence 삭제 DROP SEQUENCE test_seq; Sequence 사용 SELECT test_seq.NEXTVAL FROM DUAL; Sequence 현재 값 SELECT test_seq.CURRVAL FROM DUAL; Sequence 조회 SELECT * FROM all_sequences WHERE sequence_name = 'test_seq'; Table에 날짜 저장 INSERT INTO test(date) VALUES (SYSDATE); Table에 세부 날짜 저장 INSERT INTO test(date) VALUES (localtimes