Converting rows to columns SQL Server, T-SQL
问题 I have a function that produces a few rows as string values. The values are as follows: [12*02] [12*03] [12*04] [12*05] [12*06] [12*07] [12*08] [12*09] [12*10] [12*11] [12*12] [12*13] [12*14] [12*15] The values are actually different rows. So [12*01] is row 1 and [12*02] is row # 2 and so on. I want to use these values as column headers. So [12*01] is column 1 and [12*02] is column 2 and so on. I would have used a pivot but this string will keep changing every time and thats the very reason I