QueryExecute
Execute an SQL query and returns the results.
Method Signature
Arguments
Argument | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| The SQL to execute | |
|
|
| An array of binding parameters or a struct of named binding parameters |
|
|
|
| A struct of query options |
Examples
Simple Example
SQL Only Example. Assumes that a default datasource has been specified (by setting the variable this.datasource in Application.bx)
Passing Query Parameters using Struct
Use :structKeyName
in your sql then pass a struct with corresponding key names.
Passing Query Parameters using Array
When passing with an array use the ?
symbol as a placeholder in your sql
Related
Last updated