SQLite的例外:没有这样的表错误 [英] SQLite Exception: no such table Error

查看:133
本文介绍了SQLite的例外:没有这样的表错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
   Android的SQLite的 - “没有这样的表”的错误

我们正在努力开发在Android上的应用程序。我们正在使用SQLite数据库,并在手机上我们得到

We are trying to develop an application on Android. We are using SQLite database and on phone we are getting

SQLiteException:没有这样的表。

SQLiteException:no such table.

这是工作在模拟器的罚款。

It is working fine on simulator.

任何人都可以提供这方面的任何输入?

Can anyone provide any input on this?

推荐答案

如果您不指定数据库文件名正确,我相信它退到创建一个空数据库。这通常是'表中未找到的原因。检查你的路径和数据库文件名。

If you don't specify the database file name correctly I believe it falls back to creating an empty database. This is generally the cause of 'table not found'. Check your path and database file name.

这篇关于SQLite的例外:没有这样的表错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆