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()
On this page of the site you can watch the video online SQL Server Multiple statement table valued function. Session 31 with a duration of hours minute second in good quality, which was uploaded by the user Sunny@Pandita 14 September 2024, share the link with friends and acquaintances, this video has already been watched 132 times on youtube and it was liked by 6 viewers. Enjoy your viewing!