*.sqlite 和 *.db 文件有什么区别?
*.sqlite
和 *.db
文件有什么区别?
What is the difference between a *.sqlite
and a *.db
file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
*.sqlite
和 *.db
文件有什么区别?
What is the difference between a *.sqlite
and a *.db
file?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
您可以随意命名 SQLite 数据库。内容不是由文件结尾决定的,而是由启动每个 SQLite 的 字节序列 决定(3 ) 文件:
其 ASCII 为:
SQLite format 3
换句话说,它可以是相同的数据库内容。没有什么区别,只要创建者没有在其中放入其他字节即可。
如果您想查看它是否是 SQLite 3 数据库,请在十六进制编辑器中打开文件并查找上面的字节,或者直接使用 SQLite 驱动程序打开它。
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:
which is ASCII for:
SQLite format 3
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.
If you want to see if it is a SQLite 3 database, open the file in a hexeditor and look for the byte above or simply open it with the SQLite driver.
顾名思义,
.sqlite
文件是包含 SQLite 数据库的文件。.db
文件扩展名由 Oracle、Paradox 和 XoftSpySE 数据库使用。[1 ]正如 Christian 所指出的,通常扩展名在总体方案中并不那么重要,程序可以打开具有不同扩展名的文件。因此,如果您正在考虑将扩展名从 .sqlite 更改为 .db,只要遵循 Christian 指出的模式就可能没问题。
A
.sqlite
file is as the name implies a file that contains an SQLite database.The
.db
file extension is used by Oracle, Paradox and XoftSpySE databases.[1]As Christian noted usually extensions aren't that important in the grand scheme of things and programs can open files with different extensions. So if you are thinking about changing extensions from .sqlite to .db it's probably fine as long as you follow the pattern Christian noted.