queryexecute

Returns: any

Usage

queryexecute( sql [, params [, options [, name ] ] ] )

Arguments

Argument Description
sql
(string, required)
params
(any, optional)
options
(struct, optional)
name
(string, optional)

name of the query produced, visible in dumps or debugging output.

Examples

queryExecute(
    sql     = 'SELECT * FROM users  LIMIT 0, 10',
    options = {
        datasource   = "test",
        cachedWithin = CreateTimeSpan(0, 2, 0, 0),
        tags         = 'user_list'
    }
);

See also