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
,
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
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.