当前位置:网站首页>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
边栏推荐
- Unity prefab day04
- An article learns variables in go language
- C implementation defines a set of intermediate SQL statements that can be executed across libraries
- Weekly recruitment | senior DBA annual salary 49+, the more opportunities, the closer success!
- odoo数据库主控密码采用什么加密算法?
- Go deep into the details of deconstruction and assignment of several data types in JS
- [book club issue 13] packaging format and coding format of audio files
- js平铺数据查找叶子节点
- Logstash~Logstash配置(logstash.yml)详解
- . Net delay queue
猜你喜欢
Overview of convolutional neural network structure optimization
PR FAQ: how to set PR vertical screen sequence?
How was MP3 born?
Unity animation day05
A trap used by combinelatest and a debouncetime based solution
在芯片高度集成的今天,绝大多数都是CMOS器件
What is the catalog of SAP commerce cloud
Working group and domain analysis of Intranet
Stress, anxiety or depression? Correct diagnosis and retreatment
How did the beyond concert 31 years ago get super clean and repaired?
随机推荐
Recommend 10 excellent mongodb GUI tools
An article learns variables in go language
Can I "reverse" a Boolean value- Can I 'invert' a bool?
Enter the width!
The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
%S format character
Redis' optimistic lock and pessimistic lock for solving transaction conflicts
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
[flask] ORM one to many relationship
[tutorial] yolov5_ DeepSort_ The whole process of pytoch target tracking and detection
Unity animation day05
Explore mongodb - mongodb compass installation, configuration and usage introduction | mongodb GUI
Usage of database functions "recommended collection"
MySQL学习笔记——数据类型(数值类型)
One question per day 540 A single element in an ordered array
Solve the error of JSON module in PHP compilation and installation under CentOS 6.3
Talking about Net core how to use efcore to inject multiple instances of a context annotation type for connecting to the master-slave database
What does IOT engineering learn and work for?
【读书会第十三期】 音频文件的封装格式和编码格式
MySQL学习笔记——数据类型(2)