##ENGINE=MYISAM AUTO_INCREMENT=30 DEFAULT CHARSET=utf8

ENGINE = MYISAM AUTO_INCREMENT = 30 DEFAULT CHARSET = utf8 What is the meaning of it?

At first I do not know what that means? I say go and see someone else's interpretation, may be able to know, but saw a lot of versions, not the same, so I decided to practice under their own

CREATE TABLE `dept_inf`(
 `id` INT(11) NOT NULL AUTO_INCREMENT,
  `name` VARCHAR(50) DEFAULT NULL,
  `remark` VARCHAR(300) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MYISAM AUTO_INCREMENT=30 DEFAULT CHARSET=utf8;

We can see above has been added, so there will be behind what impact it?

I added two data, the primary key is set to null, let him automatic recognition

VALUES INTO `dept_inf` INSERT (NULL, " Technology " , " Technology " ); 
INSERT INTO` dept_inf` VALUES (NULL, " Ministry of Finance " , " Ministry of Finance " );

You can see the uploaded data from 30 starts directly, then automatically increase.

 

Guess you like

Origin www.cnblogs.com/liurui-bk517/p/11464787.html