im trying to update multiple columns in a table that all needs different where clauses in single query. Im not amazing at sql, and struggle to find help on google. im trying to achieve something like this
UPDATE $table
SET meta_value = 'john',
meta_value = 'v1234'
WHERE meta_key = 'name' AND post_id=$post_id,
meta_key = 'trak' AND post_id=$post_id"
the idea being that the first SET matches the first WHERE, and the 2nd SET matches the 2nd WHERE etc.. ideally id be able to do many of these. any idea how I can achieve this?