mysql view table field comments

SELECT
COLUMN_NAME,
COLUMN_COMMENT AS `comment`
FROM information_schema.COLUMNS WHERE TABLE_NAME='xxx_table_name'

   Modify the starting value of the primary key ID (self-increasing)

   

alter table table——name  AUTO_INCREMENT=6000;

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326611848&siteId=291194637