Total members 11893 |It is currently Tue Nov 05, 2024 2:40 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka






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




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  
 SQL AND OR in WHERE query Commands     -  
 SQL LIKE query Command     -  



cron






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com