I have a table in a database, and I\'d like to update a column which I have offline on a local file. The file itself has two columns
Another way could be ...
Since you already know the table name as well have the ID and actual value ... what you can do is ... directly write the update statements in a file, like
update mytable set value_col = value where ID_col = ID;
Second Update Statement
Third Update statement
.......
Save the file as *.sql like, updatescript.sql and then execute that script directly like
mysql -h -u root -p < "E:/scripts/sql/updatescript.sql"