ODBC.execute

From FreeSWITCH Wiki
Jump to: navigation, search

Execute a SQL statement.

This method will not create a recordset, it should be used for INSERT, UPDATE and DELETE statements.

Contents

Synopsis

result = db.execute("sql statement");

Return value

  • bool - True if the statement was successfully invoked.

Example

use("ODBC");

var db = new ODBC("dsnName", "username", "password");
var sql="delete from users";
db.execute(sql);

See Also