问题
I'd like to pivot a table, similar to the one below
to display as follows
The actual table I'm using has over 1.6 million rows, and 1500+ fields, mostly with non-boolean answers.Most of the solutions I've found require me to specify what the Field Answer contents will be in the query, which is not feasible, given the number of fields and variety of field answers. Any help would be appreciated.
来源:https://stackoverflow.com/questions/65587003/pivoting-large-table-in-postgresql