Amazon Redshift: Selecting columns based on a list of columns present in a table

后端 未结 1 558
小蘑菇
小蘑菇 2021-01-28 16:50

Is it possible in any way (without scripting) to aggregate columns which are stored in a table cell.

Basically what i am trying to achieve here is that if i have the fol

相关标签:
1条回答
  • 2021-01-28 17:11

    No, you cannot use a column name that comes from the result of another query.

    You would need to do this in your own code, sending the result to Amazon Redshift as a complete query. (That is, run one query to obtain the column names, then run a second query with those column names inserted.)

    0 讨论(0)
提交回复
热议问题