I have SQLite databases db1
and db2
. I need identical tables in each: publications
. How can I write a .sql
file where I don't need to duplicate create table
? Something like this:
CREATE TABLE
IF NOT EXISTS db1.publications,
IF NOT EXISTS db2.publications(
id TEXT,
content TEXT
... a bit long...
);