單項選擇題有訂單表order,包含用戶信息uid,商品信息gid,以下()語句能夠返回至少被購買兩次的商品id。

A.SELECT gid FROM order WHERE COUNT(gid)>1;
B.SELECT gid FROM order WHERE MAX(gid)>1;
C.SELECT gid FROM order GROUP BY gid HAVING COUNT(gid)>1;
D.SELECT gid FROM order WHERE HAVING COUNT(gid)>1GROUP BY gid;


您可能感興趣的試卷