SQL常識

①在 SQL 中增長 HAVING 子句緣由是,WHERE 關鍵字沒法與合計函數一塊兒使用。 SELECT Customer,SUM(OrderPrice) FROM Orders GROUP BY Customer HAVING SUM(OrderPrice)<2000 SELECT Customer,SUM(OrderPrice) FROM Orders WHERE Customer='Bu
相關文章
相關標籤/搜索