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
[edit] Last updated: Fri, 25 May 2012

view this page in

SQLite3::exec

(PHP 5 >= 5.3.0)

SQLite3::execFührt eine ergebnislose Anfrage gegen den Datenbank-Server aus

Beschreibung

public bool SQLite3::exec ( string $query )

Führt eine ergebnislose Anfrage gegen den Datenbank-Server aus.

Parameter-Liste

query

Die auszuführende SQL-Anfrage (normalerweise eine INSERT-, UPDATE- oder DELETE-Anweisung)

Rückgabewerte

Gibt TRUE zurück, wenn die Anfrage erfolgreich war; anderenfalls FALSE

Beispiele

Beispiel #1 SQLite3::exec()-Beispiel

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

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



add a note add a note User Contributed Notes SQLite3::exec
moodsey211 at gmail dot com 16-Dec-2010 04:29
If you get the error message saying "SQLite3::exec. database locked." You just need to define a busyTimeout to work around this.

 
show source | credits | sitemap | contact | advertising | mirror sites