码迷,mamicode.com
首页 > 数据库 > 详细

SQL Server 函数执行

时间:2014-10-31 08:43:03      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   ar   sp   strong   on   2014   log   

在SQL Server 不只是procedure 可以用execute 来执行 function 也是可以的

例子:

  create function ufn_A( @i as int)
  returns int
  begin
  return @i+1;
  end
  go

  declare @ii as int;
  execute @ii = ufn_A @i =3;
  print @ii;
  go

  bubuko.com,布布扣

 

SQL Server 函数执行

标签:blog   http   io   ar   sp   strong   on   2014   log   

原文地址:http://www.cnblogs.com/JiangLe/p/4064164.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!