Programmatic Query Column Population

ColdFusion queries are usually created by tags like , , and . But queries can also be created (and added to) programmatically using the query functions, and columns may be added to a query using the QueryAddColumn() function. In addition, to populate query columns an optional array may be passed to that function – a column value will be written for each row using the specified array values. (Applies to: ColdFusion 3 or later)

Leave a Reply