mysql数据库查询语句有关limit问题,不能嵌套语句么?
SELECT*FROMstudentORDERBYgradeDESCLIMIT(selectcount(*)fromstudent)-2,2报错额#1064-Youhav...
SELECT *
FROM student
ORDER BY grade DESC
LIMIT (select count(*) from student)-2, 2
报错额#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 '(select count(*) from student)-2, 2' at line 4 展开
FROM student
ORDER BY grade DESC
LIMIT (select count(*) from student)-2, 2
报错额#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 '(select count(*) from student)-2, 2' at line 4 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询