If you get the error message saying "SQLite3::exec. database locked." You just need to define a busyTimeout to work around this.
SQLite3::exec
(PHP 5 >= 5.3.0)
SQLite3::exec — Sonuç döndürmeyen bir SQL sorgusu çalıştırır
Açıklama
public bool SQLite3::exec
( string
$sorgu
)Sonuç döndürmeyen bir SQL sorgusu çalıştırır.
Değiştirgeler
-
sorgu -
Sonuç döndürmeyen CREATE, INSERT, UPDATE, DELETE gibi bir sorgu.
Dönen Değerler
İstek başarıyla yerine getirilirse TRUE yoksa FALSE döner.
Örnekler
Örnek 1 - SQLite3::exec() örneği
<?php
$db = new SQLite3('mysqlitedb.db');
$db->exec('CREATE TABLE bar (bar STRING)');
?>
moodsey211 at gmail dot com
16-Dec-2010 08:29
