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
- How To Select Specific Rows From Oracle Database Tutorial Example
- How To Select Specific Columns From Oracle Database Tutorial Example
- How To Select Data Using Like From Oracle Database Tutorial Example
- How To Use IS NULL In Oracle Database Tutorial Example
- How To Use IS NOT NULL In Oracle Database Tutorial Example
- How To Ascending Sort/Order Data In Oracle Database Tutorial Example
- MySQL Concat Operator SQL Example
- MySQL NULL to Empty String Example
- 19 Examples to Learn MySQL
- UNIX Command Example: head - Read beginning of a file

No comments:
Post a Comment
leave your comments here..