Home >Backend Development >PHP Tutorial >请高手帮忙看看这条 SQL 语句!多谢

请高手帮忙看看这条 SQL 语句!多谢

WBOY
WBOYOriginal
2016-06-13 10:01:36823browse

请高手帮忙看看这条 SQL 语句!!谢谢
MSSQL:
select   *   from   test   where   id   IN   (select   top   5   id   from   test   order   by   id   desc   )order   by   id   asc;

MYSQL:
不知道Mysql怎么写   MYSQL   子查询   不支持   LIMIT   :(

------解决方案--------------------
array_reverse()

Statement:
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