คั่นคำสั่งด้วย Semicolon (;) สามารถพิมพ์หลายคำสั่งในบรรทัดเดียวได้:
mysql> Select * from Student; Select * from Student ORDER BY Name; +--------+--------+--------+ | Name | RollNo | Grade | +--------+--------+--------+ | Gaurav | 100 | B.tech | | Aarav | 150 | M.SC | | Aryan | 165 | M.tech | +--------+--------+--------+ 3 rows in set (0.00 sec) +--------+--------+--------+ | Name | RollNo | Grade | +--------+--------+--------+ | Aarav | 150 | M.SC | | Aryan | 165 | M.tech | | Gaurav | 100 | B.tech | +--------+--------+--------+ 3 rows in set (0.07 sec)
MySQL ประมวลผลทีละคำสั่งตามลำดับ และแสดงผลตามลำดับ