How to “Implode” (de-normalize/concat) multiple columns into a single column?

后端 未结 4 1941
别跟我提以往
别跟我提以往 2021-01-17 23:46

I have a query which outputs something like this:

+-------+----+--------------+
| F_KEY | EV | OTHER_COLUMN |
+-------+----+--------------+
| 100   | 1  | ..         


        
4条回答
  •  北海茫月
    2021-01-18 00:06

    You can probably use the technique described here. (Full disclosure: that's my blog.) It talks about generating concatenated strings in T-SQL, without use of cursors.

提交回复
热议问题