当前位置:网站首页>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
边栏推荐
- Audio and video technology development weekly | 252
- Introduction of text mining tools [easy to understand]
- Common API day03 of unity script
- Temperature control system based on max31865
- Proxifier global agent software, which provides cross platform port forwarding and agent functions
- Variable cannot have type 'void'
- 31年前的Beyond演唱会,是如何超清修复的?
- Width accuracy
- Will the memory of ParticleSystem be affected by maxparticles
- MySQL index optimization
猜你喜欢
Blood cases caused by Lombok use
MySQL学习笔记——数据类型(数值类型)
Actual combat | use composite material 3 in application
Penetration test --- database security: detailed explanation of SQL injection into database principle
Dry goods | fMRI standard reporting guidelines are fresh, come and increase your knowledge
Model fusion -- stacking principle and Implementation
Stress, anxiety or depression? Correct diagnosis and retreatment
這幾年爆火的智能物聯網(AIoT),到底前景如何?
What is the future of the booming intelligent Internet of things (aiot) in recent years?
Data Lake Governance: advantages, challenges and entry
随机推荐
Hidden communication tunnel technology: intranet penetration tool NPS
LeetCode 1184. 公交站间的距离 ---vector顺逆时针
Unity脚本API—Component组件
Unity prefab day04
Shell 编程基础
How to rapidly deploy application software under SaaS
165 webmaster online toolbox website source code / hare online tool system v2.2.7 Chinese version
Unity脚本API—Time类
Align left and right!
Recommend 10 excellent mongodb GUI tools
What should ABAP do when it calls a third-party API and encounters garbled code?
科研漫画 | 联系到被试后还需要做什么?
Talking about Net core how to use efcore to inject multiple instances of a context annotation type for connecting to the master-slave database
华为云数据库DDS产品深度赋能
Logstash~Logstash配置(logstash.yml)详解
Will the memory of ParticleSystem be affected by maxparticles
【读书会第十三期】FFmpeg 查看媒体信息和处理音视频文件的常用方法
Common knowledge of unity Editor Extension
lnx 高效搜索引擎、FastDeploy 推理部署工具箱、AI前沿论文 | ShowMeAI资讯日报 #07.04
Move, say goodbye to the past again