with lots of cf version, what is the best way to g...
# cfml-general
s
with lots of cf version, what is the best way to get the query column names in same order and case whatever is specified in the sql query
a
Copy code
q = queryNew('b,A,c','varchar,integer,varchar',[{a:1,b:'foo',c:'fooo'}]);
writeDump(q.getcolumnNames());
https://trycf.com/gist/b0f66ae1a578707056aa3a2219ca3ab5/lucee?theme=monokai
and if you're using ACF you can use
Copy code
q.getMeta().getColumnLabels()