日期:2014-05-17 浏览次数:20494 次
SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO ALTER FUNCTION dbo.fn_server81v12test_get_layouts_for_widget ( @widget_id int ) RETURNS VARCHAR(500) AS BEGIN DECLARE @str varchar(500) SET @str = '' SELECT @str = @str + CAST(layout_no AS varchar(3)) + ', ' FROM [server81v12test_layout_placeholder] WHERE widget_id = @widget_id IF LEN(@str) > 0 SET @str = SUBSTRING(@str, 1, LEN(@str)-1) RETURN @str END GO SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO