随笔分类 -  数据库

数据库
摘要:MySQL报错:1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'xxx' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 阅读全文
posted @ 2020-08-26 14:24 林末 阅读(3145) 评论(0) 推荐(1)
摘要:在实际工作过程中,有时因为生产环境已有历史数据原因,需要测试环境数据id从某个值开始递增,此时,我们需要修改数据库中自增ID起始值, 下面以MySQL为例,表名:users; 建表时添加 create table users(id int auto_increment primary key,666 阅读全文
posted @ 2020-07-16 19:29 林末 阅读(904) 评论(0) 推荐(1)

访客: 浏览: