count函式與order by子句一起查詢時報錯處理

老w愛db發表於2024-02-07

資料庫版本:12.2.0.1

語句:

SELECT count(*) FROM wuyang

WHERE name BETWEEN 'W1' AND 'W3' OR c1 BETWEEN 'W05' AND 'W07'

 ORDER BY name;


ERROR at line 2:

ORA-03113: end-of-file on communication channel

Process ID: 78509

Session ID: 15 Serial number: 1785


alter日誌報錯:

ORA-7445 [kkoosoel]


將order by 語句去掉後,問題解決:

SELECT count(*) FROM wuyang

WHERE name BETWEEN 'W1' AND 'W3' OR c1 BETWEEN 'W05' AND 'W07';


來自 “ ITPUB部落格 ” ,連結:https://blog.itpub.net/70021989/viewspace-3006585/,如需轉載,請註明出處,否則將追究法律責任。

相關文章