Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

random record using order by rand() mysql

SELECT * FROM table_name
ORDER BY RAND()
LIMIT 1;
Code language: SQL (Structured Query Language) (sql)
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #random #record #order #mysql
ADD COMMENT
Topic
Name
6+3 =