revdb_execute |
Type | function |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | revdb_execute(<databaseID>, <SQLQuery> [, <variablesList>])
|
Associations | database library |
Summary | Executes the revExecuteSQL command.
|
Introduced | 1.1 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Parameters | Name | Type | Description |
---|
databaseID | | The number returned by the revOpenDatabase function when the database
was opened.
|
SQLQuery | | A string in Structured Query Language.
|
variablesList | | The variablesList consists of one or more variable names (or expressions
that evaluate to variable names), separated by commas.
|
|
Example | revdb_execute(myDatabaseID,field "Query","*b" & "myvar")
|
Values | Name | Type | Description |
---|
return | | The revdb_execute function returns the number of rows operated on by
the SQLQuery.
|
|
Related | Control Structure: function
Command: revExecuteSQL
Glossary: execute, record, Standalone Application Settings, standalone application, function call, SQL query, command, LiveCode custom library
Library: Database library
|
Security | disk, network |
Description | Use the revdb_execute function to execute a SQL query without
selecting records.
Evaluating the revdb_execute function has the same effect as
executing the revExecuteSQL command. The only difference
is that one is a function call and the other is a command.
Important: The revdb_execute function is part of the
Database library. To ensure that the function works in a
standalone application, you must include this
custom library when you create your
standalone. In the Inclusions pane of the
Standalone Application Settings window, make sure both the
"Database" library checkbox and those of the database drivers you are
using are checked.
|
Tags | database |