Total members 11895 |It is currently Sun Dec 22, 2024 5:50 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
 Server Names Records     -  
 Get MX records corresponding to a given Internet host name     -  
 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 LIKE query Command     -  
 using parameter with name query     -  



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