how to select all tables with column name and update that column
i want to find all the tables in my db that contain the column name Foo, and update its value to 0, i was thinking something like this , but i dont know how to place the UPDATE on that code, i plan on having this statement on the Events inside the mysql database, im using WAMP, the idea is basically having an event run daily which sets all my 'Foo' Columns to 0 without me having to do it manually SELECT TABLE_NAME, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE column_name LIKE 'Foo' No, not in a single statement. To get the names of all that tables that contain column named Foo : SELECT