天天看点

Android - 插入数据库(SQLite)错误

插入数据库(SQLite)错误

本文地址: http://blog.csdn.net/caroline_wendy

本文的合集已经编著成书,高级Android开发强化实战,欢迎各位读友的建议和指导。

在京东即可购买:https://item.jd.com/12385680.html

Android - 插入数据库(SQLite)错误

Error:android.database.sqlite.SQLiteException: no such table: step (code 1): ,  while compiling: INSERT INTO step(duration,date,counter) VALUES (?,?,?).

错误:插入数据库错误,没有找到表和数据。 原因:提示中已经说明,是参数顺序写入错误,重新修改写入参数即可。