PRIMARY KEY definition in MySQL CREATE TABLE statement

后端 未结 5 1855
梦如初夏
梦如初夏 2021-01-30 20:36

What\'s the difference between this code:

CREATE TABLE samples (
  sampleid INT(11) NOT NULL AUTO_INCREMENT,
  sampledate DATE NOT NULL,
  location VARCHAR(25) N         


        
5条回答
  •  抹茶落季
    2021-01-30 20:50

    There are many ways to skin a cat and above 2 examples are just 2 of them. They are identical. There's no difference.

提交回复
热议问题