摘要:
Create table Tab([Col1] int,[Col2] nvarchar(1)) Insert Tabselect 1,N'a' union all select 1,N'b' union all select 1,N'c' union all select 2,N'd' union all select 2,N'e' union all select 3,N'f' Go create function F_Str(@Col1 int) returns nvarchar(100) as 阅读全文