queryColumnCount

Returns the amount of all columns in the given query object

queryColumnCount(query) → returns numeric

Member Function Syntax

query.columnCount()

This function requires Lucee. Not supported on Adobe ColdFusion.

queryColumnCount Argument Reference

query query
Required

Examples sample code invoking the queryColumnCount function

myQuery = queryNew("ID,name,age");
writeOutput( queryColumnCount( myQuery ) );

Expected Result: 3


Fork me on GitHub