我试图执行这个查询的SQL查询,但其示值误差无法执行超过
select
order_id,
product_id
from (select
order_id,
product_id,
count(*) over(partition by order_id, product_id) as dc
from order_items
)
where dc > 1 ;
错误我得到是
您的SQL语法错误;检查对应于您的MySQL服务器版本的手册,以便在'(partition by order_id,product_id)'作为来自order_items的dc时使用正确的语法。其中,第1行的dc> 1'
http://forums.mysql.com/read.php?32,225340,225340#msg-225340 – Barmar
我上面的查询任何解决方案?请帮助我,现在我处于悲惨的状态w.r.t此查询 – obama
在我发布的链接上有解决方法。 – Barmar