android 真机数据库出错?

ihrthk
博客专家认证
2012-12-22 06:01:49
12-22 05:58:58.330: D/Debug SQL(1216): >>>>>> insert or ignore into t_agenda_guest (id,agendaId,guestId) values (null,'25','2279')
12-22 05:58:58.330: I/Database(1216): sqlite returned: error code = 1, msg = no such table: main.t_guestId
12-22 05:58:58.340: E/Database(1216): Failure 1 (no such table: main.t_guestId) on 0xeea80 when preparing 'insert or ignore into t_agenda_guest (id,agendaId,guestId) values (null,'25','2279')'.
12-22 05:58:58.340: W/dalvikvm(1216): threadid=9: thread exiting with uncaught exception (group=0x40018560)
12-22 05:58:58.340: E/AndroidRuntime(1216): FATAL EXCEPTION: Thread-12
12-22 05:58:58.340: E/AndroidRuntime(1216): android.database.sqlite.SQLiteException: no such table: main.t_guestId: insert or ignore into t_agenda_guest (id,agendaId,guestId) values (null,'25','2279')
12-22 05:58:58.340: E/AndroidRuntime(1216): at android.database.sqlite.SQLiteDatabase.native_execSQL(Native Method)

模拟器运行正常,真机出错,log如上,我纳闷是这句no such table: main.t_guestId,我插入的表明明是t_agenda_guest,怎么显示没有这个表main.t_guestId呢?
...全文
185 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Ada168855 2012-12-23
  • 打赏
  • 举报
回复
你可以给人的表重新命名一个新名称试试怎么样

80,471

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧