title: Mysql update all columns which has value say 'ram'
body: <p>I have many columns in a table which needs to be checked against some value and values needs to be replaced if match found..</p>
  
  <p>So basically I am looking for a query which takes column name as sort of variable and loops through the table and updates the column value if matched..</p>
  
  <p>I could do that with php, having as many queries as columns.. but that's what I don't want..</p>
  
  <p>p.s. I know its a bad design, and in normal case such requirements never occur, but sadly it is what it is..</p>