objective-c - iOS FMDatabase插入时 返回YES 但是就是插不进数据库 这是为什么
PHPz
PHPz 2017-04-17 16:38:30
0
3
644

result = [_db executeUpdate:@"INSERT INTO CommentNotice (is_read,comment_id) VALUES (?,?)",temp[@"is_read"],temp[@"comment_id"]];

result返回YES 但是我去本地数据库看 结果没插进去这是为什么

PHPz
PHPz

学习是最好的投资!

reply all(3)
巴扎黑

Where is the db stored?

左手右手慢动作
  1. Check whether your sqlite file is under Document

  2. Have you opened the transaction and not committed

迷茫

Copy the db from the application and take a look,

Print the value before inserting.

It’s best to test it with sql tool before writing

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template