[英]MySQL Error 1064
I wrote this code in Oracle
, but putting it in MySQL
i get an error. 我用Oracle
编写了这段代码,但是将其放在MySQL
却出现了错误。
SQL query: Documentation SQL查询:文档
Select idan
From Certificare
Having count(idav)=3
Group by idan
LIMIT 0, 25
MySQL said: Documentation MySQL说:文档
#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 'Group by {idan} LIMIT 0, 25' at line 4 strong text
GROUP BY
在HAVING
之前,这就是为什么会出现错误的原因。
Try this query 试试这个查询
Select `idan`
From `Certificare`
Group by `idan`
Having count(`idav`)=3
LIMIT 0, 25
GROUP BY
should come before Having
GROUP BY
应该来之前Having
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.