#์ํ์ค ์์ฑ create sequence TB_Board_SEQ start with 1 increment by 1 cache 10; #์ํ์ค ์ ๋ ฅ INSERT INTO TB_BOARD VALUES(nextval('TB_BOARD_SEQ'), ....); #์ํ์ค ์ด๊ธฐํ ALTER SEQUENCE TB_USER_SEQ RESTART WITH 1;
#์ํ์ค ์์ฑ create sequence TB_Board_SEQ start with 1 increment by 1 cache 10; #์ํ์ค ์ถ๊ฐ INSERT INTO TB_BOARD VALUES(nextval('TB_BOARD_SEQ'), ....); #์ํ์ค ์ด๊ธฐํ ALTER SEQUENCE TB_USER_SEQ RESTART WITH 1;
์ปฌ๋ผ์ถ๊ฐ ALTER TABLE board ADD create_date date; ์ปฌ๋ผ์ญ์ ALTER TABLE board DROP create_date; ์ปฌ๋ผ default๊ฐ ์ถ๊ฐ ALTER TABLE board ALTER COLUMN name SET DEFAULT '์ด๋ฆ์์'; --๋ฌธ์ ALTER TABLE board ALTER COLUMN no SET DEFAULT 1;--์ซ์ ์ปฌ๋ผ default๊ฐ ์ ๊ฑฐ ALTER TABLE board ALTER name DROP DEFAULT; ์ปฌ๋ผ NOT NULL ์ถ๊ฐ ALTER TABLE board ALTER COLUMN name SET NOT NULL; ์ปฌ๋ผ NOT NULL ์ ๊ฑฐ ALTER TABLE board ALTER COLUMN name DROP NOT ..