Answered
Dynamic column name in cfquery
I have a scenario in which database column names are in a
format COLUMN1, COLUMN2, ...COLUMNn. Number of column is not known
while coding. But usually the column names are hard code while
accessing the cfquery result like
cfqueryresult.COLUMN1.
I want to get the column names from 'cfqueryresult.ColumnList' and from that result i want to fetch the column values.
Is it possible to achieve this in coldfusion?
cfqueryresult.COLUMN1.
I want to get the column names from 'cfqueryresult.ColumnList' and from that result i want to fetch the column values.
Is it possible to achieve this in coldfusion?