简体   繁体   English

Oracle SQL 开发人员 ANY() Function

[英]Oracle SQL Developer ANY() Function

I wrote the query (oracle sql) as below and I saw red highlight on any() function ( any() function problem ).我编写了如下查询(oracle sql),我在 any() function ( any() function 问题)上看到了红色突出显示。 Is it the Oracle Developer error or my mistake?是 Oracle 开发人员错误还是我的错误? if it is my mistake, how can I change it?如果这是我的错误,我该如何改变它?

SELECT * 
FROM EMP
WHERE (DEPTNO, SAL) = ANY(SELECT DEPTNO, MAX(SAL) FROM EMP GROUP BY DEPTNO);

oracle developer version: 21.4.1. oracle 开发者版本:21.4.1。
error message in detail:详细错误信息:

syntax error (scalar_subquery_expression:= (...语法错误(scalar_subquery_expression:= (...

That's the SQL Developer client side parser saying it doesn't recognize that pattern/keyword.那是 SQL Developer 客户端解析器说它无法识别该模式/关键字。

If you put your mouse over that, you'll see why it thinks what it thinks.如果你把鼠标放在它上面,你就会明白它为什么会这么想。

If it's valid SQL, then this would be a bug.如果它是有效的 SQL,那么这将是一个错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM