setting multiple column using one update

Amogh picture Amogh · Sep 8, 2010 · Viewed 180.3k times · Source

How to set multiple columns of a table using update query in mysql?

Answer

Pekka picture Pekka · Sep 8, 2010

Just add parameters, split by comma:

UPDATE tablename SET column1 = "value1", column2 = "value2" ....

See also: mySQL manual on UPDATE