问题
I want to create a table in a SQLite database only if doesn\'t exist already. Is there any way to do this? I don\'t want to drop the table if it exists, only create it if it doesn\'t.
回答1:
From http://www.sqlite.org/lang_createtable.html:
CREATE TABLE IF NOT EXISTS some_table (id INTEGER PRIMARY KEY AUTOINCREMENT, ...);
来源:https://stackoverflow.com/questions/4098008/create-table-in-sqlite-only-if-it-doesnt-exist-already