0

I'm working with sqlite ehich contains more than 2000 rows. i want to make sure that every insert/delete/update command was successfull. is there a way to view the sqlite db in a run time? like watching databases with phpMyAdmin / MySQL WorkBench ?

thanks

4

1 回答 1

1

这 3 种方法有一种方法可以知道:如果发生错误,则 Insert 返回 -1 Delete & update 返回受影响的行数,如果没有行受到影响,则返回 0。您可以使用 DDMS 视图从模拟器中提取数据库,并使用 SDK 文件夹中的 sqlite3.exe 文件查看它

于 2012-06-16T14:25:41.643 回答