随笔分类 - 数据库
数据库
摘要: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
阅读全文
摘要:在实际工作过程中,有时因为生产环境已有历史数据原因,需要测试环境数据id从某个值开始递增,此时,我们需要修改数据库中自增ID起始值, 下面以MySQL为例,表名:users; 建表时添加 create table users(id int auto_increment primary key,666
阅读全文



浙公网安备 33010602011771号