Set mysql auto increment data table columns and rows of data insertion

Create mysql data table set incremental id column, the primary key 
Create Table running_log (   id int Primary Key AUTO_INCREMENT,   RouteName VARCHAR (255),
   log VARCHAR (255),
   Time datetime );

to the data table has up data columns to insert a new row of data
1, INSERT INTO `running_log` (` id`, `routename`,` log`, `time`) VALUES ( 'null', 'yunnan-101', ' test text', '2019-08-15 00:00 : 00 ');
2, the INSERT running_log` the INTO `(` routename`, log` `,` time`) the VALUES (' & MANAGEMENT-101 ',' test text ',' 2019-08-15 00:00:00 ' );

Guess you like

Origin www.cnblogs.com/mangojun/p/11357023.html