group_concat in Informix

前端 未结 2 368
南笙
南笙 2020-12-18 12:30

Looking for a query in Informix\'s SQL that will simulate MySQL\'s group_concat function.

What MySQL\'s group_concat does is it creates an

2条回答
  •  暖寄归人
    2020-12-18 12:36

    There is certainly no built-in function in Informix to do this. Does any other mainstream RDBMS have such a bizarre aggregate function? Ordering by a column not selected in a query is a bit dubious, but grouping? That's a new one on me.

    You would have to write a stored procedure or UDR to generate such a dataset. To be honest, I wouldn't attempt this in the database. It looks like a task best suited to the consumer of this output (ie the application/webapp/report-writer etc).

提交回复
热议问题