SQL Server Multiple statement table valued function. Session 31
HTML-код
- Опубликовано: 21 окт 2024
- Multiple statement table valued function
• Similar to inline table valued function with few differences
• Return clause can contain the structure of the table
• Multiple statement table valued function has begin and end block
• Less performance than inline table valued function
-------------------------------------------------------------------------------------------
select * from empdetails
create function mstvf()
returns @table table(name1 varchar(20), grade1 varchar(10))
as
begin
insert into @table select name, grade from empdetails
return
end
select * from mstvf()
Keep it up sir 👍