top 5 records in mysql code example Example: top 10 rows in mysql select * from table_name ORDER BY id LIMIT 10;