mysql - Import SQL File into existing DB-Table (phpmyadmin) -


i have sql-file defining table 2 columns - product-id , product-reference. need import file existing table has same structure (plus columns), product-id corresponds product-id backup file. there simple way via phpmyadmin?

one approach use load data infile (see here) set option assign column values. columns not being set given default values, typically null.

personally, load data staging table 2 columns , insert data staging table final table. makes easier validate data before putting "real" table.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -