Last updated 21 days ago
Was this helpful?
This function returns the delimited column list of a query.
Result: ID,name,age
myQuery = queryNew( "ID,name,age" ); writeOutput( myQuery.columnList() );
qry = queryNew( "aaa" ); arr = arrayNew( 1 ); arr[ 1 ] = "a"; arr[ 2 ] = "b"; arr[ 3 ] = "c"; QueryAddColumn( qry, "bbb", arr ); QueryAddColumn( qry, "ccc", arr ); writeDump( queryColumnList( qry ) );
QueryColumnList(query=[query])
query
true
The query to get the column names from
myQuery = queryNew( "ID,name,age" ); writeOutput( queryColumnList( myQuery ) );