Home > Backend Development > PHP Tutorial > 求sql帖子随机调用有关问题

求sql帖子随机调用有关问题

WBOY
Release: 2016-06-13 10:06:53
Original
765 people have browsed it

求sql帖子随机调用问题
{dede:sql sql='SELECT * FROM `pre_forum_thread` ORDER BY `pre_forum_thread`. `moderated` LIMIT 0 , 20'}

我知道desc是降序排序,而asc就是升序。就是不知道怎样随机排序。求高手在上面一段代码中加入随机排序


------解决方案--------------------

探讨
{dede:sql sql='SELECT * FROM `pre_forum_thread` ORDER BY `pre_forum_thread`. `moderated` LIMIT 0 , 20'}

我知道desc是降序排序,而asc就是升序。就是不知道怎样随机排序。求高手在上面一段代码中加入随机排序
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template