php sqlite3Result
How would the following fail:
$stmt = $db->prepare("INSERT INTO someta开发者_Go百科ble VALUES ('SOMETHING')");
$result = $stmt->execute();
What would be a scenerio when: !$result == true
?
- Database file is not opened or not writable.
sometable
does not exist.- A conflict occurs.
- If 'sometable' has more than 1 not-null column with no defaults. see http://www.sqlite.org/lang_insert.html first bullet, second sentence
精彩评论