日期:2014-05-18  浏览次数:20388 次

sql函数
各位,我在查询窗口定义了一个函数,同时调用,应该如何调用?最后的三条调用语句都不对
go
create   function   dd()   returns   @t   table(myname   char(10))   as
begin

insert   @t   select   '张三 '
union   select   '李四 '
return
end
go

--select   *   from   @t
--exec( 'select   *   from   '+   @t   )
--exec( 'select   *   from   '+   dbo.dd())


------解决方案--------------------
呵呵
------解决方案--------------------
问题出在何处?
------解决方案--------------------
没改什么啊.,就对了.不懂