日期:2014-05-17 浏览次数:20558 次
use master
GO
create function dbo.f_test(@ID int)
returns datetime
as
begin
return getdate()+@ID
end
GO
use test
go
create table t_test (ID int)
insert into t_test values(1)
select *,master.dbo.f_test(ID) from dbo.t_test