User Defined Functions
a Scalar User-Defined FunctionCREATE FUNCTION whichContinent (@Country nvarchar(15))RETURNS varchar(30)ASBEGINdeclare @Return varchar(30)select @return = case @Countrywhen 'Argentina' then 'South America'when 'Belgium' then 'Europe'when 'Brazil' then 'South America'when 'Canada' then 'North America'when 'Denmark' then 'Europe'when 'Finland' then 'Europe'when 'France' then 'Europe'else '
Đăng ký:
Đăng Nhận xét (Atom)
0 nhận xét:
Đăng nhận xét