Advertisement
timeshifter

Untitled

Sep 3rd, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.29 KB | None | 0 0
  1. insert into #tmp
  2.     select t1.[item], t2.[item], t3.[item]
  3.         from (select * from [dbo].[fn_SplitString]('3,4', ',')) t1
  4.             join (select * from [dbo].[fn_SplitString]('1,2', ',')) t2 on t1.[idx] = t2.[idx]
  5.             join (select * from [dbo].[fn_SplitString]('5,6', ',')) t3 on t1.[idx] = t3.[idx]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement