Learn SQL
LIMIT
23.1
Lesson

Select only 5 students

Let’s say that we want to select only 5 students.

SQL has a LIMIT clause which can be used to achieve this.

LIMIT returns the specified number of records from the top of the result.