Is there a pure sql solution to search in all tables for a specific field with a given value or name. In pseudocode the query im looking for would be
SELECT * FROM * WHERE field = "value"
or
SELECT tablename, field FROM *
I already know how I could use the mysql information schema to search for all tables with the column, but I'm unsure if (and how) I could combine this inside a query (or stored procedure).