QueryKeyExists()
Determines whether a specific column is present in a query.
QueryKeyExists( query=query, column=string );
Returns: Boolean
Argument | Description |
---|---|
query
query,
required
|
Query Object to test. |
column
string,
required
|
Key to be matched with the columns |
Examples
myQuery = queryNew("custID,custName");
writeDump(queryKeyExists(myQuery,"age"));
writeDump(queryKeyExists(myQuery,"custName"));
See also
- Queries
- QueryColumnExists()
- query.keyExists()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)