SQL Server - Using Declare in Table value Function

Sql Server - Using Declare in Table value Function

create function Func()
returns @T table(ColName int)
as
begin
          declare @Var int
          set @Var = 10
          insert into @T(ColName) values (@Var)
          return
end

Comments

Popular posts from this blog

Shared / Static Class in vb.net/C#

Xamarin Forms : PopUp Page with RG.Plugins.Popup

Text was truncated or one or more characters had no match in the target code page.". (SQL Server Import and Export Wizard)