sql - SQLite: Inserting values from table in database1 to table in database2 without overwriting -
i can't wrap head around this. we're 2 dudes manually writing textbits in conflicting databases (i know, it's not cool), , need integrate our work. sorry if it's duplicate, don't other answers. please patient, need here.
two different databases needs merge 1 column, , if possible, avoid overwriting.
his database: database: result: database 1 database 2 database 2 table1 table1 table1 column column column blah null blah null bla bla bla bla bla bla
i'm guessing inner join mixed insert into?
we're working in gui named valentina studio sql editor.
try like
insert tab3 (col1) select col1 tab1 col1 not null union select col1 tab2 col1 not null
Comments
Post a Comment