
MYSQL ORDER BY 错误
SQL:SELECT`_id`,`title`,`author`,`time`,`property`,`content`,`status`FROM`note`WHERE`...
SQL: SELECT `_id`,`title`,`author`,`time`,`property`,`content`,`status` FROM `note` WHERE `author` = '1' LIMIT 0, 20 ORDER BY `_id` DESC
Mysql Error: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY `_id` DESC' at line 1 展开
Mysql Error: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY `_id` DESC' at line 1 展开
展开全部
SELECT `_id`,`title`,`author`,`time`,`property`,`content`,`status` FROM `note` WHERE `author` = '1' ORDER BY `_id` DESC LIMIT 0, 20
limit 应该放在最后
limit 应该放在最后
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询