githubEdit

QueryColumnExists

This function returns true if the column exists in the query

Method Signature

QueryColumnExists(query=[query], column=[string])

Arguments

Argument
Type
Required
Description
Default

query

query

true

The query to check for the column

column

string

true

The column to check for

Examples

ID column is in given query

Run Examplearrow-up-right

myQuery = queryNew( "ID,name,age" );
writeOutput( queryColumnExists( myQuery, "ID" ) );

Result: true

Whereas "gender" is not

Run Examplearrow-up-right

Result: false

Additional Examples

Run Examplearrow-up-right

Last updated

Was this helpful?