I need to insert data in a table from two other tables that have the same schema.
I have an exception :
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FULL JOIN data e2 ON e1.siren = e2.siren' at line 3
Here's My code :
string MergeTables = string.Format(@"INSERT INTO Table3 (a,b)
SELECT e1.a, e2.b
FROM bilan e1 FULL JOIN data e2
ON e1.id= e2.id;
");