Update a column in MySQL
You have to use UPDATE instead of INSERT:
- UPDATE Syntax
For Example:
UPDATE table1 SET col_a='k1', col_b='foo' WHERE key_col='1';
UPDATE table1 SET col_a='k2', col_b='bar' WHERE key_col='2';
UPDATE table1 SET col_a = 'newvalue'
Add a WHERE
condition if you want to only update some of the rows.
This is what I did for bulk update:
UPDATE tableName SET isDeleted = 1 where columnName in ('430903GW4j683537882','430903GW4j667075431','430903GW4j658444015')
if you want to fill all the column:
update 'column' set 'info' where keyID!=0;