Get a list of the fields in a table.

Get a list of the fields in a table.

<cfquery name="getFieldNames" datasource="Examples">
  select * from thetablename
</cfquery>

<cfoutput>#getFieldNames.ColumnList#</cfoutput>

 

Share this article!

Follow us!

Find more helpful articles: