When a query returns many rows, but only a few of them needs to be seen, add a LIMIT clause. This is a MySQL option that allows the output of a query to be limited to the first rows of the result that would otherwise be returned. The LIMIT clause may be given with either one or two arguments: LIMIT row_count LIMIT skip_count, row_count limit,h Each argument must be represented as an integer constant. Expressions, user variables, and so forth can not be used. First Rows from the Beginning When followed by a single integer, row_count, LIMIT returns the first row_count rows from the beginning of the result set. To select just the first 8 rows of a result set, use LIMIT 8; mysql> SELECT ID, Name FROM City LIMIT 8; +----+-------------------+ | ID | Name | +----+-------------------+ | 1 | Kabul ...
“The best way to be ready for the future is to invent it.”— John Sculley