开发者

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?


  1. Database file is not opened or not writable.
  2. sometable does not exist.
  3. A conflict occurs.


  1. If 'sometable' has more than 1 not-null column with no defaults. see http://www.sqlite.org/lang_insert.html first bullet, second sentence
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜