Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当涉及到 SQL 时,我知道几乎为零。
我一直在查看我拥有的主题的代码,它正在按顺序提取图像
$get_imgs = mysql_query("SELECT file FROM uploaded_images ORDER BY id DESC LIMIT 0, $results");
如何将顺序更改为随机?
我可以将 ORDER 更改为 RANDOM 吗?
$get_imgs = mysql_query("SELECT file FROM uploaded_images ORDER BY RAND() LIMIT 0, $results");