Does this sentence not necessarily merge three tables with the same ID data?

SELECT Table_1. , Table_2. , Table_3.* FROM ((Table_1 INNER JOIN Table_2 ON Table_1.DataTime = Table_2.DataTime) INNER JOIN Table_3 ON Table_2.DataTime = Table_3.DataTime) where Table_1.DataTime = 1
is not necessarily merging three tables with the same ID data
because I want to choose three tables with the same ID data to insert into another table, but sometimes some tables do not necessarily have the ID of the other two tables. All data inserts are wrong

Mar.17,2021

always has the table with data as the main table. The other two are associated with left join. So it doesn't matter if the other two tables don't exist


  1. you can use INNER JOIN for fields associated with two tables, that is, foreign keys.
  2. if the two tables have the same structure and the corresponding field types are the same, you can use UNION ALL .

look at the structure of your tables in that way

or send out your watch knot and look at it for you

Menu