Checks whether a column exists in the given query object
queryColumnExists(query, column)
→ returns boolean
query.columnExists(column)
myQuery = queryNew("ID,name,age");
writeOutput(queryColumnExists(myQuery,"ID"));
Expected Result: true
myQuery = queryNew("ID,name,age");
writeOutput(queryColumnExists(myQuery,"gender"));
Expected Result: false
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.