COUNT() 函数的使用
This commit is contained in:
parent
1a2212ad54
commit
9ccd5e1a89
14
数据库/头歌/COUNT() 函数的使用/1. COUNT() 函数的使用.sh
Normal file
14
数据库/头歌/COUNT() 函数的使用/1. COUNT() 函数的使用.sh
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user