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
Post a Comment