A table:
Field information: ID, IOSIDFA, DID, IOSAD, TIME
Table B:
Field information: ID, AndroidIDFA, DID, IOSAD, TIME
Want to merge into table C
Format is as follows:
Field information: ID, IDFA, DID, AD, TIME
IDFA IOSIDFA and AndroidIDFA
AD contains IOSAD and IOSAD
What is shown in figure:

CodePudding user response:
Select * from AUnion all
Select * from B
CodePudding user response:
insert into CSelect ID, IOSIDFA, DID IOSAD, TIME from A table
Union all
Select ID, AndroidIDFA, DID IOSAD, TIME from table B
CodePudding user response:
Insert into CSelect ID, IOSIDFA, DID IOSAD, TIME from A table
Union all
Select ID, AndroidIDFA, DID IOSAD, TIME from table B
CodePudding user response: