Home Page

Tips page
c
cellulari
debian
egittologia
emacs
emacs-latex
hardware
html
inglese
java
latex
linux
matlab
misc
mysql

*Check delle tabelle e recover da un crash
*Check dello stato del mysql server
*Comandi utili da sapere utilizzando MySQL
*Connettersi a MySQL da remoto
*Import ed export/backup di un database
*Limit the number of rows returned
*Oracle rownum in MySQL
*Recupero della password di root di mysql

network
octave
programming
python
security
sed
tech
webapps
windows

University Page

Programming

Debian & Linux

Some works

About me

Del.icio.us Bookmarks

BOINC Combined Statistics

Site Statistics

Contact me sending an e-mail (antispam defense activated)

debian

hacker emblem

blogger

GeoURL

View Sandro Tosi's profile on LinkedIn

This is my Google PageRank

Title: Limit the number of rows returned
Author: Sandro Tosi
Last modified: 2005-11-23

A big  table, you'd like to  take only a slice  of it: how  to do? Use
LIMIT keyword.

Syntax is LIMIT <start_row>,<row_count> :  it will limit the number of
rows  returned  to <row_count>  and  starts  returning  rows from  the
<start_row>-th record in the table.

mysql> SELECT * FROM big_table
    -> LIMIT 0,10;

that  will take  the first  10 rows  of big_table  (the first  rows is
numbered 0).

mysql> SELECT * FROM big_table
    -> LIMIT 10,10;

will take the next 10 rows from the same table,