Query Statement Opening

A query statement is an object that represents one instance of the query. You can create multiple statements that can run in parallel.

Use the open() function to open a query statement.

The syntax of the function is:

Query.Statement.open(String QueryDefinitionName, String StatementName);

The QueryDefinitionName references the query definition that contains the query text. The statement name defined here is used in other functions to identify this query statement.

For example,

Query.Statement.open("report", S_Id);

Where S_Id is a string variable that contains the statement name. Names can be constructed in various ways, as shown in Simple Snapshot Query Example.