Equivalent of MSSQL IDENTITY Column in MySQL

前端 未结 2 559
太阳男子
太阳男子 2020-12-03 17:00

What is the equivalent of MSSQL IDENTITY Columns in MySQL? How would I create this table in MySQL?

CREATE TABLE Lookups.Gender
(
    GenderID            


        
2条回答
  •  误落风尘
    2020-12-03 17:18

    CREATE TABLE Lookups.Gender
    (
        GenderID   INT         NOT NULL AUTO_INCREMENT,
        GenderName VARCHAR(32) NOT NULL
    );
    

提交回复
热议问题