如何在sqlite中更改数据库名称? [英] How to change database name in sqlite?

查看:163
本文介绍了如何在sqlite中更改数据库名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须简单地更改数据库的名称,但似乎 ALTER DATABASE 命令在 SQLite 中无效.

I have to simply change name of database, but it seems the ALTER DATABASE command is not valid in SQLite.

我的场景是我有一个 SQLite 加密数据库,现在我想重命名它.手动重命名 db 文件后,加密不起作用.所以我尝试使用命令更改数据库的名称.看起来问题是由于加密造成的.

My scenario is that I have a SQLite encrypted database, and now I want to rename it. After manually renaming the db file, encryption is not working. So I tried to change the database's name using command. It looks like problem is due to encryption.

推荐答案

SQLite 中没有数据库名称,因为每个文件只有一个数据库.也许您想要做的是重命名 SQLite 文件.

There's no database name in SQLite because there's only one database per file. Maybe what you want to do is rename the SQLite file instead.

这篇关于如何在sqlite中更改数据库名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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