mysql first 10 rows only code example Example: how to get first 10 records of a table in mysql SELECT *FROM yourTableName ORDER BY yourIdColumnName LIMIT 10;