2013-02-25 5 views

답변

3

예를 수행 할 수 있습니다

create function foo 
(
    @seed int 
) 
returns @foo_t table 
(
    [a] int not null, 
    [b] int not null, 
    [c] as ([a] + [b]) 
) 
begin 
    insert into @foo_t values (@seed, 2) 
    insert into @foo_t values (@seed + 1, 3) 

    return 
end 
go 

select 
    * 
from foo(1) 
go 
관련 문제