PHP » PYTHON |
login |
register |
about
|
|
sqlite_execSQLiteDatabase->exec(PHP 5, PECL sqlite >= 1.0.3) sqlite_exec -- SQLiteDatabase->exec — Executes a result-less query against a given database Description
bool sqlite_exec
( resource $dbhandle
, string $query
[, string &$error_msg
] )
bool sqlite_exec
( string $query
, resource $dbhandle
)
Object oriented style (method): SQLiteDatabase
bool queryExec
( string $query
[, string &$error_msg
] )
Executes an SQL statement given by the query against a given database handle (specified by the dbhandle parameter). Warning
SQLite will execute multiple queries separated by semicolons, so you can use it to execute a batch of SQL that you have loaded from a file or have embedded in a script. Parameters
Return ValuesThis function will return a boolean result; TRUE for success or FALSE for failure. If you need to run a query that returns rows, see sqlite_query(). The column names returned by SQLITE_ASSOC and SQLITE_BOTH will be case-folded according to the value of the sqlite.assoc_case configuration option. Changelog
Examples
Example #1 Procedural example
<?php
Example #2 Object-oriented example
<?php
See Also
|
more
Recently updated
more
Most requested
|