bring top 10 rows of sql table code example
Example 1: sql select first row
-- NOTE: This is for Oracle/PLSQL only
-- > EXAMPLE
select *
from CONSUMERS
where ROWNUM <= 1
/*
-- > SYNTAX
select *
from {yourTable}
where ROWNUM <= {number-of-rows}
*/
Example 2: SQL SELECT TOP Equivalent in oracal
syntax -> SELECT column_name(s)
FROM table_name
WHERE ROWNUM <= number
////example///
SELECT *
FROM Persons
WHERE ROWNUM <=5