valueList

Returns each value from a column of an executed query.
CFML does not evaluate the arguments.
A delimited list of the values of each record returned from an
executed query column

valueList(column [, delimiter]) → returns string

valueList Argument Reference

column QueryColumn
Required

Name of an executed query and column. Separate query name
and column name with a period.

delimiter string
Default: ,

A delimiter character to separate column data items.
Default: comma (,).

Examples sample code invoking the valueList function


Retrieve column results

news = queryNew("id,title",
    "integer,varchar",
    [ {"id":1,"title":"Dewey defeats Truman"}, {"id":2,"title":"Man walks on Moon"} ]);
writeOutput( valueList(news.id) );

Expected Result: 1,2


Fork me on GitHub