当前位置:网站首页>MySQL query error
MySQL query error
2022-07-19 10:43:00 【Xia'an code】
Expression #1 of ORDER BY clause is not in SELECT list, references column 'X1.t0.name' which is not in SELECT list; this is incompatible with DISTINCT
This is usually mysql Caused by version problems .
To settle temporarily :
select version();
select @@global.sql_mode Inquire about sql_mode
set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
Permanent solution :
modify my.cnf, Get rid of ONLY_FULL_GROUP_BY Parameters :
add to sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
Errors are reported for queries with different character sets of database table fields , First, look at the... That created the table sql, Or look at the character set of table structure , Then modify it to be consistent ,
ALTER table table_name COLLATE=utf8mb4_general_ci, convert to CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
边栏推荐
- 新增、修改操作时自定义复杂逻辑校验-2022新项目
- SAP S4 Material Management 库存模块 MARD 数据库表读取技术细节介绍
- Know what it is, and know why, JS object creation and inheritance
- HCIA review and answer 2022.7.6
- Leetcode ugly number problem solution
- SAP ABAP CDS view 视图的 Replacement 技术介绍
- MFC | self drawn CEdit control under the framework
- String type function transfer problem
- Autojs learning - multi function treasure chest - medium
- ROS 重名
猜你喜欢

HCIA static comprehensive experiment report 7.10

知其然,而知其所以然,JS 对象创建与继承

高数_第1章空间解析几何与向量代数__点到平面的距离

C# SerialPort配置和属性了解

Develop the first Flink app

从“被动”到“主动”,ZETA技术助力“RFID2.0”升级该如何实现?

Design of the multi live architecture in different places of the king glory mall

HCIA OSPF

vulnhub inclusiveness: 1

Pytorch框架 学习记录1 CIFAR-10分类
随机推荐
Figure an introduction to the interpretable method of neural network and a code example of gnnexplainer interpreting prediction
新增、修改操作時自定義複雜邏輯校驗-2022新項目
Autojs learning - Dynamic decryption
Attachment handling of SAP Fiori
关于hping打流测试工具
R language ggplot2 visualization: use the gghistogram function of ggpubr package to visualize the grouping histogram, and use the palette parameter to customize the bar border color of the grouping hi
How to use SVG to make text effects arranged along any path
[csp-j 2021] summary
AutoJs学习-多功能宝箱-下
[design process] Net ORM FreeSQL wheredynamicfilter dynamic table query function
Leetcode丑数题解
The new energy track has high risks, so please pay attention to safety
移植吴恩达深度学习01机器学习和神经网络第二周神经网络基础编程作业选修作业到pycharm
Bidirectional NAT Technology
R language uses the aggregate function of epidisplay package to divide numerical variables into different subsets based on factor variables, calculate the summary statistics of each subset, and set na
常见集合特性
新增、修改操作时自定义复杂逻辑校验-2022新项目
「百度一面」怒喷面试官!不就是树遍历时增加一个行号?
R language ggplot2 visualization: use the ggstripchart function of ggpubr package to visualize dot strip plot, and set the add parameter to mean_ SD add the mean standard deviation vertical line and s
如果是用mybatics去访问达梦数据库,相当于完全一样了?因为SQL语法没变。对吧?