随笔分类 -  数据库

摘要:命令如下: 例子: mysql show create table m_zhbess_vehicle_report\G 1. row Table: m_zhbess_vehicle_report Create Table: CREATE TABLE ( int(11) NOT NULL COMMEN 阅读全文
posted @ 2019-11-19 14:57 小白一生 阅读(1792) 评论(0) 推荐(0)
摘要:语法 排除表 压缩 阅读全文
posted @ 2019-10-24 09:38 小白一生 阅读(244) 评论(0) 推荐(0)
摘要:出于对业务的不了解,往往会让人做出错误的判断 CREATE TABLE ( int(11) NOT NULL AUTO_INCREMENT COMMENT '客户ID', varchar(250) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL CO 阅读全文
posted @ 2019-10-23 14:16 小白一生 阅读(330) 评论(0) 推荐(0)
摘要:``` 查看配置 show variables like '%increment%'; 如果: auto_increment_increment=2 执行: set @@global.auto_increment_increment = 1; set @@auto_increment_increment =1; 如果: auto_increment_offset=2 执行: set @@globa 阅读全文
posted @ 2019-10-17 18:03 小白一生 阅读(1697) 评论(1) 推荐(0)