Skip to content

Miscellaneous

columnNames()

columnNames() — returns any

Returns a list of column names in the table mapped to this model. The list is ordered according to the columns’ ordinal positions in the database table.

columnNames() <!--- Get a list of all the column names in the table mapped to the `author` model --->
<cfset columns = model("author").columnNames()>