SQLite的:.db文件扩展名.sqlite文件扩展名 [英] SQLite: .db file extension to .sqlite file extension

查看:227
本文介绍了SQLite的:.db文件扩展名.sqlite文件扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个来自一个软件应用程序.db文件。我试图打开它,在Android应用程序中使用它。然而,当我试图在SQLite数据库浏览器打开一个警告,说该文件不是一个SQLite 3数据库。我能够在十六进制编辑器打开该文件,可以看到很多其他的文字,我不知道这意味着什么数据好坏参半。我怎样才能在Android应用程序openned一个.db文件,如果它不是一个SQLite 3数据库?谢谢你。

I have a .db file which came from a software application. I am trying to open it and use it in an android application. However, when I attempt to open it in SQLite Database Browser a warning appears and says that the file is not an SQLite 3 Database. I am able to open the file in Hex Editor and can see data mixed with a bunch of other text that I don't know what it means. How can I get a .db file openned in an android application if it is not an sqlite 3 database? Thanks.

推荐答案

如果您的SQLite文件是正确的android的数据库那么就改变你的文件的扩展名,它将能够在到Android使用它。

If your SQLite file is correct for the android database then just change the extension of your file and it will able to use it in to Android.

如果它不能解决你的问题,然后使用SQLite数据库管理器。我使用的SQLite数据库管理器来创建数据库,甚至还可以更改数据库的任何值。因此,使用SQLiteDatabaseManager制作和更改数据库。

If it not solve your problem then use SQLite Database Manager. I am using SQLite Database Manager to create database and even also to change any values of the database. So, Use SQLiteDatabaseManager to make and change the database.

是的,请确保您有默认android_metadata数据库中的表。有关的元数据的详细信息,请参见此链接

And yes, be sure that you have default android_metadata table in the database. For more information regarding the metadata see this link.

这篇关于SQLite的:.db文件扩展名.sqlite文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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