COUNT() 函数的使用

This commit is contained in:
GuanM 2024-11-19 15:25:25 +08:00
parent 1a2212ad54
commit 9ccd5e1a89

View File

@ -0,0 +1,14 @@
USE Mall
GO
SET NOCOUNT ON
------ return the number of product which price bigger than 10 -----
-- ********** Begin ********** --
SELECT COUNT(*)
FROM Products
WHERE prod_price > 10
-- ********** End ********** --
GO