LIMIT¶
The LIMIT
clause specifies the maximum number of rows that should be returned in the result set.
Syntax¶
SELECT <column_name> [ ,... ]
FROM <table_name>
LIMIT <number_of_rows>
Arguments¶
Parameter |
Description |
---|---|
|
The column to retrieve |
|
The table from which to retrieve the data |
|
The maximum number of rows to return |
Examples¶
SELECT
employee_id,
employee_name
FROM
employees
ORDER BY
employee_id ASC
LIMIT
10 OFFSET 20;