如何命名一个SQLite数据库,使其没有默认名称main? [英] How to name an SQLite database so it doesn't have the default name of main?

查看:1218
本文介绍了如何命名一个SQLite数据库,使其没有默认名称main?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何命名一个SQLite数据库,使其没有默认名称 main

How can I name an SQLite database so it doesn't have the default name of main?

推荐答案

你不能。 main只是SQLite始终用于您打开的主数据库的名称。 (如果需要,您可以使用 ATTACH 添加额外的数据库。)

You can't. "main" is simply the name which SQLite always uses for the primary database that you have open. (If necessary, you can add extra databases using ATTACH, though.)

http://www.sqlite.org/lang_attach.html

这篇关于如何命名一个SQLite数据库,使其没有默认名称main?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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