BJSNuruhee / levelup

0 stars 0 forks source link

MySQL auto_increment #24

Closed yejun95 closed 10 months ago

yejun95 commented 10 months ago

auto_increment

CREATE TABLE tb_test (
    USER_SEQ INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    USER_ID VARCHAR(100) NOT NULL,
    USER_PW VARCHAR(100) NOT NULL,
    USER_EMAIL VARCHAR(100) NOT NULL,
    USER_PHONE VARCHAR(100) NOT NULL,
    USER_TOKEN VARCHAR(500) NOT NULL
)

💡 주의 사항

✔ inert 실행

INSERT INTO tb_test
(
    USER_SEQ,
    USER_ID,
    USER_PW,
    USER_EMAIL,
    USER_PHONE,
    USER_TOKEN
)
VALUES
(
     null,
    "USER_ID data",
    "USER_PW data",
    "USER_EMAIL data",
    "USER_PHONE data",
    "USER_TOKEN data"
);



image