Is it possible in MySQL to select all rows where ANY column contains a specified value?
I'm trying to write a generic search function that can work without any information about a table schema.
Use SHOW COLUMNS
to get a list of the columns in the table and then dynamically build your query from the results.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With