SQL SERVER 自定义函数 返回表类型

来源:互联网 发布:java 连接池实现 编辑:程序博客网 时间:2024/06/04 23:29
create function testFunTable(@count int)  
returns @temptale table (intcount int ,intcountAdd int)  
as  
begin  
insert into @temptale values(@count,@count+1)  
return  
end


SELECT  * FROM  dbo.testFunTable(20)
1 0