开发者

php sqlite3Result

开发者 https://www.devze.com 2023-03-15 23:37 出处:网络
How would the following fail: $stmt = $db->prepare(\"INSERT INTO someta开发者_Go百科ble VALUES (\'SOMETHING\')\");

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

精彩评论

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