QueryColumnData()
Returns all the data in a query for a given column
QueryColumnData( query=query, columnName=string, closure=function );
Returns: Array
Examples
myQuery = QueryNew( '' );
names = [ 'xxxx','yyyy'];
queryAddColumn( myQuery,'name','varchar',names );
result = queryColumnData( myQuery,'name' );
writeDump(result);
See also
- Queries
- ValueArray()
- ValueList()
- query.columnData()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)