I want to retrive record at 4th position in ORACLE 9i. Can I compare ROWNUM=4 in the WHERE clause??
相关问题
- System.Data.OracleClient not working with 64 bit O
- Using a subquery within PLSQL conditional logic; e
- Oracle: pivot (coalesce) some counts onto a single
- Oracle TNS Permission Denied *
- Oracle: How to detect client process termination l
相关文章
- How to store an array of bytes in Oracle?
- Invoking a function call in a string in an Oracle
- Change Oracle SQL Query Text before submission [cl
- ORACLE Constraint to allow Null Value, IF
- Does Oracle's “date'[yyyy-mm-dd]'” lit
- SQL - Multiple Values comma separated when using G
- Getting Error Message For oci_execute() Error (PHP
- What are the ways to insert & retrieve BLOB data f
No, ROWNUM is assigned after the WHERE clause is evaluated, so it cannot "skip" rownum one to three.
Furthermore, it is assigned BEFORE sorting.
This is the most annoying "feature" of Oracle. They really need to implement LIMIT/OFFSET.
You need to do something like
why don't you try something like this :)
here tablename is the name of your table and tn is the alias assigned to it.