摘要:
IF OBJECT_ID (N'dbo.GetDetails', N'IF') IS NOT NULL DROP FUNCTION dbo.GetDetails;GOcreate function dbo.GetDetails(@name nvarchar(200))RETURNS TABLEASRETURN (SELECT[表名]=case when a.colorder=1 then d.name else '' end,[表说明]=case when a.colorder=1 then isnull(f.value,'') 阅读全文