The SQL SELECT LIMIT statement is used to retrieve records from one or more tables in a database and limit the number of records returned based on a limit value.
LIMIT keyword has the following syntax:
SELECT ...
FROM ...
WHERE ...
LIMIT [offset_value,] number_of_records
where offset_value:
- indicates which record to start from
- is optional and may be skipped
and number_of_records value indicates how many records to return in a result set.
Login in to like
Login in to comment