标签:style blog color io ar sp div c on
--函数声明 create function myAdd(@a int, @b int) returns int as begin declare @c int set @c = @a + @b return @c end --函数调用 declare @a1 int declare @b1 int declare @c1 int set @a1 = 1 set @b1 = 100 set @c1=dbo.myAdd(@a1,@b1) print cast(@c1 as nvarchar(10))
标签:style blog color io ar sp div c on
原文地址:http://www.cnblogs.com/zwhFighting/p/4007780.html