QueryColumnData

Returns all the data in a query for a given column

QueryColumnData( query, columnName [, closure ] )

Returns: Array

Argument Description
query
query, required

query object do get data from

columnName
string, required

name of the column returned

closure
function, optional

UDF/Closure that call with the values from column

Alias: function, callback, udf

Examples

myQuery = QueryNew( '' );
names = [ 'xxxx','yyyy'];
queryAddColumn( myQuery,'name','varchar',names );
result = queryColumnData( myQuery,'name' );
writeDump(result);

See also