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.
SELECT column1, column2, ...
FROM table_name
LIMIT number; Edit the code below and click Run to see the result live.