Executes a SQL query and returns the result as an array.
![]() | Deprecated, use Database.executeSql instead |
Core function
Syntax
RunSQLQuery( SQLQuery )
Parameters
Parameter | Description |
---|---|
SQLQuery | A string representing the SQL query to be executed. |
Description
Returns an array of objects. Properties of these objects are named after the retrieved columns. Note that all columns to be retrieved must have names.
Examples
In the example above, jobName is assigned the job name of Job 1.