Switch to full style
Include SQL commands
Post a reply

SQL Limit query for a range of records

Mon Jul 16, 2012 12:25 am

You can limit the range of results using Limit keyword, you need to specify the starting and ending of records range, you can use if for paging in your application, following SQL will return 10 records starting from record 0 or first record.

Code:

SELECT 
FROM  'Department'  LIMIT 010



Following SQL return 10 records starting from the 31st record.
Code:

SELECT 
FROM  'Department'  LIMIT 3010




Post a reply
  Related Posts  to : SQL Limit query for a range of records
 Get MX records corresponding to a given Internet host name     -  
 Server Names Records     -  
 Search records from text file     -  
 range of the short type     -  
 range of data type     -  
 range of the char type     -  
 Print a chart that shows how many number in each range     -  
 EJB-QL IN where query     -  
 Run query and search from ASP     -  
 Query about jsp and printer     -