|
|
1
4
你要找的是 CREATE TABLE IF NOT EXISTS 以及常见问题条目 How do I list all tables/indices contained in an SQLite database . 创建不带“if not exists”选项的表将导致错误。 |
|
|
2
1
你可以
|
|
|
3
1
sqlite有一个“if not exists”子句,这样您就可以在数据库中抛出一个“create table”,如果它已经存在,它将忽略它。例如: 如果不存在,则创建表mytable(id integer); 相关文档的URL位于: http://www.sqlite.org/lang_createtable.html |