MySQL Tutorial

A database system used with PHP.

MySQL LIMIT

The MySQL LIMIT Clause

The LIMIT clause is used to specify the number of records to return.

The LIMIT clause is useful on large tables with thousands of records. Returning a large number of records can impact performance.

Syntax:

SELECT column1, column2, ...
FROM table_name
LIMIT number;

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics