Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Database API > Methods

Database API: Exec()

Scroll Prev Next More

 

Executes an SQL query using the current active connection.

 

Use with SQL Queries that do not return data.

Syntax

DB_Exec(SQL)

Arguments

SQL

an SQL query.

Return value

true if executed successfully;

 

false in all other cases.

Example

DB_Exec("insert into orders (ShipName, Freight, OrderDate) values ('Jonh Smith', 128.12, CURDATE())")

See also:

Database API: SetConnection()

Database API: Query()

About Database API