复制代码 代码如下:
CREATE FUNCTION dbo.Foo()
RETURNS int
AS
BEGIN
declare @n int
select @n=3
return @n
END
复制代码 代码如下:
CREATE FUNCTION dbo.Foo()
RETURNS TABLE
AS
return select id, title from msgs
复制代码 代码如下:
CREATE FUNCTION fn_FindReports (@InEmpId nchar(5))
RETURNS @retFindReports TABLE (empid nchar(5) primary key,
empname nvarchar(50) NOT NULL,
mgrid nchar(5),
title nvarchar(30))
...
新闻热点
疑难解答