我有一个sql语句,它应该选择按行号排序的表的所有内容.所以我使用了row_number函数.
但我每次都会得到错误
Exception in thread "main" java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
Run Code Online (Sandbox Code Playgroud)
或者这个错误
ORA-00936: missing expression
Run Code Online (Sandbox Code Playgroud)
我的陈述如下:
SELECT row_number() OVER(ORDER BY table.column1) AS row, table.*
FROM table
WHERE column2= ("Any String")
ORDER BY row;
Run Code Online (Sandbox Code Playgroud)
我希望你能帮我解决这个问题.
谢谢