Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Oracle 11g 的简单语法错误。使用以下 SQL 语句:
SELECT employee, CUST_NBR, SUM (SALE_PRICE) FROM CUST_ORDER GROUP BY employee, CUST_NBR WITH CUBE
对于表 CUST_ORDER (*ORDER_ID, employee, SALE_PRICE, CUST_NBR)
甲骨文抱怨说
第 4 行出现错误:ORA-00933:SQL 命令未正确结束
我可能是盲人,但我看不到问题
你应该使用
GROUP BY CUBE(employee, CUST_NBR)
更多关于CUBE 这里。
CUBE