Mysql 选择顶部错误
我有一个mySQL脚本:Mysql 选择顶部错误,mysql,sql,database,select,Mysql,Sql,Database,Select,我有一个mySQL脚本: SELECT TOP 2 * FROM produse ORDER BY `id_produs` DESC 生成此错误: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2 * FROM produse ORDER BY `id_pr
SELECT TOP 2 * FROM produse ORDER BY `id_produs` DESC
生成此错误:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2 * FROM produse ORDER BY `id_produs` DESC LIMIT 0, 30' at line 1
有什么问题吗?mysql中没有TOP 使用限制2
SELECT * FROM produse ORDER BY id_produs DESC LIMIT 2
改用
限制
:
SELECT *
FROM produse
ORDER BY id_produs DESC
LIMIT 2
在手册中查找这一点有多难?