queryColumnCount

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


Output number of query columns

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

Expected Result: 3


Fork me on GitHub