ora-30485: missing expression in the order by the description window

Used in java program code orace function row_number () over, but will be reported ora-30485: missing expression in the order by the window specification error, but in pl / sql error does not, check the Internet a lot about this issue the solution, but are useless, because I added order by expression in this function. Later, after several tests, plus a final statement in sql order by can be the perfect solution. It follows that reported this error, there are two basic solutions:

1. In function row_number () over order by expressions added, such as: row_number () OVER (PARTITION BY t.fault_order_id ORDER BY t.createdate desc)

2. If the first method can not be solved, you can try to use this method, add a sql statement last order by expression.

Published 118 original articles · won praise 59 · views 490 000 +

Guess you like

Origin blog.csdn.net/u012255097/article/details/87491091