Semantics : ExecuteQueryStatement

ExecuteQueryStatement  ::=  executeQuery
( ( IDENTIFIER )? ( using IDENTIFIER )? : Mixture ;
| ( IDENTIFIER )? ( with BindVariableList )? ;
) ( ; | onSuccess SimpleBlock ( else SimpleBlock )? )

Used by:  

This is actually 2 statements: one that executes a SQL statement directly, the other one (using the width clause>) executes a prepared statement. In either case, the query is stored in the DBHandle variable (default is $$ ) that can be retrived. If a query is known to return no more than one row, can use the onSuccess and else to specify code to handle that single row.