当前位置:网站首页>Expression #1 of ORDER BY clause is not in SELECT list, references column ‘d.dept_ no‘ which is not i
Expression #1 of ORDER BY clause is not in SELECT list, references column ‘d.dept_ no‘ which is not i
2022-07-04 16:11:00 【Liluoxiao】
problem :"Expression #1 of ORDER BY clause is not in SELECT list, references column 'd.dept_no' which is not in SELECT list; this is incompatible with DISTINCT"
Add distinct Report a mistake later
reason : When using grouping function or window function ,order by The following field name should be the same as select The field names after are consistent
solve : In this case select The last field is named de.dept, and order by The latter is d.dept, Need to put d.dept Change to de.dept
边栏推荐
- 压力、焦虑还是抑郁? 正确诊断再治疗
- The 17 year growth route of Zhang Liang, an open source person, can only be adhered to if he loves it
- Summary of database 2
- c# 实现定义一套中间SQL可以跨库执行的SQL语句
- JS to realize the countdown function
- %S format character
- LeetCode 1184. 公交站间的距离 ---vector顺逆时针
- Explore mongodb - mongodb compass installation, configuration and usage introduction | mongodb GUI
- Essential basic knowledge of digital image processing
- Introduction of text mining tools [easy to understand]
猜你喜欢

Case sharing | integrated construction of data operation and maintenance in the financial industry

The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release

Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture

Overview of convolutional neural network structure optimization

Big God explains open source buff gain strategy live broadcast

Redis' optimistic lock and pessimistic lock for solving transaction conflicts
![[native JS] optimized text rotation effect](/img/50/3c09f223e821c14e7e9e0fb47622b6.jpg)
[native JS] optimized text rotation effect

压力、焦虑还是抑郁? 正确诊断再治疗
Understand the context in go language in an article

error: ‘connect‘ was not declared in this scope connect(timer, SIGNAL(timeout()), this, SLOT(up
随机推荐
Socks agent tools earthworm, ssoks
Logstash~Logstash配置(logstash.yml)详解
Big God explains open source buff gain strategy live broadcast
Shell 编程基础
An article learns variables in go language
Qt---error: ‘QObject‘ is an ambiguous base of ‘MyView‘
Align left and right!
LeetCode 58. Length of the last word
函数式接口,方法引用,Lambda实现的List集合排序小工具
這幾年爆火的智能物聯網(AIoT),到底前景如何?
Ten clothing stores have nine losses. A little change will make you buy every day
中国主要城市人均存款出炉,你达标了吗?
What is the catalog of SAP commerce cloud
Scientific research cartoon | what else to do after connecting with the subjects?
【读书会第十三期】视频文件的编码格式
Talking about Net core how to use efcore to inject multiple instances of a context annotation type for connecting to the master-slave database
【读书会第十三期】FFmpeg 查看媒体信息和处理音视频文件的常用方法
Usage of database functions "recommended collection"
31年前的Beyond演唱会,是如何超清修复的?
MySQL learning notes - data type (numeric type)