Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to select first row of database sql

-- select the first row of database table
select * from company limit 1

----For DB2 

SELECT * FROM table_name FETCH FIRST 20 ROWS ONLY
 
PREVIOUS NEXT
Tagged: #select #row #database #sql
ADD COMMENT
Topic
Name
6+4 =