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

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

WBOY
Release: 2016-06-13 10:01:36
Original
828 people have browsed it

请高手帮忙看看这条 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()

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