MySQL的常规知识 show 查看数据库 show databases; 查看表 存在的所有表 show tables; 创建表的命令 show create table table_name; 表的结构 show index from table_name; show columns from table_name; 注:“show columns from table_name;”和“desctable_name;”效果是一样的. show table status like "table…
2016.4.10 1.MySQL查看系统当前默认自增列种子值和步长值(全局) 1 show GLOBAL VARIABLES like 'auto_incre%'; 2.MySQL查看具体某一张表的详细基础信息(步长,编码等信息) 1 show table STATUS like 'users'; 3.修改当前数据库自增ID步长 SET @@auto_increment_increment=4; show VARIABLES like 'auto_incre%'; 结果: auto_incre…