从MySQL数据库中选择随机条目
问题描述:
如何使用PHP从MySQL数据库中选择一个随机条目?
How can I select a single random entry from a MySQL database using PHP?
我要选择Author,AuthorText和Date吗?
I want to select the Author, AuthorText, and Date?
答
SELECT Author, AuthorText, Date FROM table ORDER BY RAND() LIMIT 1