单选题 MySQL数据程序设计
2013-09-09

有订单表orders,包含用户信息userid, 产品信息 productid, 以下(  )语句能够返回至少被订购过两回的productid?

A.select productid from orders where count(productid)>1
B.select productid from orders where max(productid)>1
C.select productid from orders where having count(productid)>1 group by productid
D.select productid from orders group by productid having count(productid)>1

参考答案

D

答案解析

暂无解析

你可能感兴趣的试题