Getting a list of columns returned by a CFQUERY tag in ColdFusion

In a previous example, “Determining the number of results from a database query in ColdFusion”, we saw how you could get the number of records returned by a database query in ColdFusion by using the recordCount property on the query object.

The following example shows how you can get a list of columns in a data query object in ColdFusion by using the columnList property.

Continue reading