result = [_db executeUpdate:@"INSERT INTO CommentNotice (is_read,comment_id) VALUES (?,?)",temp[@"is_read"],temp[@"comment_id"]];
result返回YES 但是我去本地数据库看 结果没插进去这是为什么
学习是最好的投资!
Where is the db stored?
Check whether your sqlite file is under Document
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
Where is the db stored?
Check whether your sqlite file is under Document
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