请求select count(*) as count from pages时报错
请求constsql=`select*frompages;selectcount(*)ascountfrompages`,在navicat里编辑查询没问题,运行时报错Er...
请求const sql = `select * from pages;select count(*) as count from pages`,
在navicat里编辑查询没问题,
运行时报错Error: ER_PARSE_ERROR: 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 pages.id from pages' at line 1,实在是想不明白为什么,求解答
写错了,运行时报错应该是Error: ER_PARSE_ERROR: 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(*) as count from pages' at line 1 展开
在navicat里编辑查询没问题,
运行时报错Error: ER_PARSE_ERROR: 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 pages.id from pages' at line 1,实在是想不明白为什么,求解答
写错了,运行时报错应该是Error: ER_PARSE_ERROR: 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(*) as count from pages' at line 1 展开
若以下回答无法解决问题,邀请你更新回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询