开发者

What are the restrictions on "database-name" when attaching a database using SQLite?

开发者 https://www.devze.com 2023-03-14 14:29 出处:网络
开发者_开发百科In the absence of any information otherwise, assume it\'s an SQL identifier. SQLite reserves the names main and temp, but almost anything else can be used if properly quoted. Still, I\'
开发者_开发百科

What are the restrictions on "database-name" when attaching a database using SQLite?


In the absence of any information otherwise, assume it's an SQL identifier. SQLite reserves the names main and temp, but almost anything else can be used if properly quoted. Still, I'd recommend avoiding SQL keywords and such, if just to keep the confusion quota down. (Database names are arbitrary, and do not need to correlate with the name of the file containing them.)

0

精彩评论

暂无评论...
验证码 换一张
取 消