แสดงผลแบบสุ่ม
- rand() คือการสุ่ม
- limit คือ จำนวนแถวที่จะแสดง
---------------------------------------------------------
Select ColName1,ColName2,...,ColNameN
from TableName
Order by
RAND()
Limit 5
----------------------------------------------------------
- rand() คือการสุ่ม
- limit คือ จำนวนแถวที่จะแสดง
---------------------------------------------------------

from TableName
Order by
RAND()
Limit 5
----------------------------------------------------------
Select ColName1,ColName2,...,ColNameN from TableName Order by RAND() Limit 5