4. ORDER BY and LIMIT
ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.
ORDER BY sorts results. DESC sorts high to low and ASC low to high. LIMIT keeps only the first rows.
عرض المثال
SELECT name, marks FROM students ORDER BY marks DESC LIMIT 5;