android 的 abc.db 和 abc.sqlite 有什么区别?
我见过很多android数据库应用程序。
一些应用程序的数据库扩展名为 .sqlite,而另一些应用程序的数据库扩展名为 .db。
这两者之间有什么区别?它应该包含不同的东西吗?
请帮助我。
android 数据库最好使用什么?
谢谢。
i have seen many android database application.
Some of the application have its database with .sqlite extension while some have .db extension.
What is the difference betwwen those both ? Should it both contain different things ?
Please help me for that.
And what should be the best to use for the android database ?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
.sqlite 文件顾名思义是包含 SQLite 数据库的文件。
.db 是 Oracle、Paradox 和 XoftSpySE 数据库使用的文件扩展名
。您可以随意命名 SQLite 数据库。内容不是由文件结尾决定的,而是由每个 sqlite (3 )文件:
0x53 0x51 0x4c 0x69 0x74 0x65 0x20 0x66 0x6f 0x72 0x6d 0x61 0x74 0x20 0x33 0x00
换句话说,可能是相同的数据库内容。没有什么区别,只要创建者没有在其中放入其他字节即可。
.sqlite file is as the name implies a file that contains SQLite database.
.db is the file extension used by Oracle, Paradox and XoftSpySE databases
You can name your SQLite database whatever you want. The content is not determined by the file ending but by a sequence of bytes which start every sqlite (3) file:
0x53 0x51 0x4c 0x69 0x74 0x65 0x20 0x66 0x6f 0x72 0x6d 0x61 0x74 0x20 0x33 0x00
In other words, it could be the same database content. There is no difference, as long as the creator did not put other bytes in it.
扩展名并不重要。您甚至可以省略数据库文件的任何扩展名。只是为了让开发者了解它是什么类型的文件。至少我是这么认为的:)
extensions doesn't matter. you may even omit any extension to your database file. Its just for the understanding of developer to know which file type it is. At least that's what i believe :)
创建数据库时,您只需为要创建的数据库命名。所以所以扩展没有任何区别。无论如何,Sqlite SQLite 浏览器都会识别它。
When you create a database, you only is are going to give a name to the database which you will create. so So the extension does not make any difference.. Sqlite SQLite browser will recognise recognize it anyhow.
是的,扩展名并不重要,但 SQLite 是一个用于 android 的数据库,其他数据库适用于所有数据库。
但让我澄清一件事 .sqlite 显示 SQLite 数据库。 .db是oracle使用的文件,mysql的自包含db dumpp等
yes extension doesn't matters but SQLite is a database which used for android and other DB's works for all database.
but let me clear one thing .sqlite shows SQLite database. .db is the file used by oracle, self contained db dumpp of mysql etc etc