downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SQLite3::lastErrorCode> <SQLite3::escapeString
Last updated: Fri, 06 Nov 2009

view this page in

SQLite3::exec

(PHP 5 >= 5.3.0)

SQLite3::execExecutes a result-less query against a given database

Description

public bool SQLite3::exec ( string $query )

Executes a result-less query against a given database.

Parameters

query

The SQL query to execute (typically an INSERT, UPDATE, or DELETE query).

Return Values

Returns TRUE if the query succeeded, FALSE on failure.

Examples

Example #1 SQLite3::exec() example

<?php
$db 
= new SQLite3('mysqlitedb.db');

$db->exec('CREATE TABLE bar (bar STRING)');
?>



add a note add a note User Contributed Notes
SQLite3::exec
There are no user contributed notes for this page.

SQLite3::lastErrorCode> <SQLite3::escapeString
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites