简体   繁体   中英

Oracle SQL Developer ANY() Function

I wrote the query (oracle sql) as below and I saw red highlight on any() function ( any() function problem ). Is it the Oracle Developer error or my mistake? 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.
error message in detail:

syntax error (scalar_subquery_expression:= (...

That's the SQL Developer client side parser saying it doesn't recognize that pattern/keyword.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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