- 博客(2)
- 收藏
- 关注
原创 数据库字段1改为2,2改为1
将数据库字段1改为2,2改为1 使用中间变量 update table set target='3' where target='1'; update table set target='1' where target='2'; update table set target='2' where target='3'; 使用case语句 update table SET target= CASE target WHEN '1' THEN '2' WHEN '2' THEN '1' END
2022-01-24 15:21:35
1652
原创 mysql出现Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggre错误
使用Navicat按F6打开命令列界面 输入:select @@global.sql_mode; 将其中的ONLY_FULL_GROUP_BY去掉 输入: set @@global.sql_mode=‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION’;
2020-12-16 20:06:23
522
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅