1CREATE TABLE IF NOT EXISTS some_table (id INTEGER PRIMARY KEY AUTOINCREMENT, ...);
2
1INSERT INTO example(column1, column2)
2SELECT value_to_insert1, value_to_insert2
3WHERE NOT EXISTS(SELECT 1 FROM example
4WHERE column1 = value_to_insert AND column2 = value_to_insert);
1 CREATE TABLE [IF NOT EXISTS] [schema_name].table_name (
2 column_1 data_type PRIMARY KEY,
3 column_2 data_type NOT NULL,
4 column_3 data_type DEFAULT 0,
5 table_constraints
6) [WITHOUT ROWID];
1CREATE TABLE IF NOT EXISTS some_table (id INTEGER PRIMARY KEY AUTOINCREMENT, ...);