|
|||||
|
||||||
Related Syntax | Related Concepts | Other Library Functions |
function |
db.execute-in |
Library: Interfaces, Database access (OMDB)
Import: omdb.xmd |
define external function db.execute-in value db.database database sql value stream statement
Argument definitions
Use db.execute-in to execute a single SQL statement on the specified database.
The db.database object database must be:
The stream variable statement must not be empty (else external exception OMDB105).
The SQL statement may modify the structure of the database or manipulate the data in the tables. It may be any non-select type of SQL statement.
This function makes use of the db.database OMX variable used to create the connection to the database. For example:
import "omdb.xmd" prefixed by db. process local db.database my-database initial {db.open-odbc "dbDemo"} db.execute-in my-database sql ("insert into Course (cid, CourseName)" || " values ('456', 'Four-on-the-Floor Gearshifting')")