ROWNUM Oracle Database Tutorial Example

How To Use ROWNUM In Oracle Database Tutorial Example

Run MS-DOS command prompt then copy & paste the below code to select using ROWNUM from a table in Oracle Database Server Tutorial Example

-- CONNECT as TUTORIAL
-- i am using sqlplus as client. you can use anything as you like.
 
   SELECT * FROM test WHERE ROWNUM < 5;
      -- that's it!! all rows and all columns of Oracle database table "test"
      -- whose ROWNUM is less than 5 have been selected
      -- is comment in Oracle
      -- in fact it is comment in MSSQL and MySQL as well
   

How To Use ROWNUM In Oracle Database Tutorial Example - Result in MS-DOS SQLPLUS Client Tools

 

Related Tutorial Examples

  1. How To Select Specific Rows From Oracle Database Tutorial Example
  2. How To Select Specific Columns From Oracle Database Tutorial Example
  3. How To Select Data Using Like From Oracle Database Tutorial Example
  4. How To Use IS NULL In Oracle Database Tutorial Example
  5. How To Use IS NOT NULL In Oracle Database Tutorial Example
  6. How To Ascending Sort/Order Data In Oracle Database Tutorial Example
  7. MySQL Concat Operator SQL Example
  8. MySQL NULL to Empty String Example
  9. 19 Examples to Learn MySQL
  10. UNIX Command Example: head - Read beginning of a file

No comments:

Post a Comment

leave your comments here..