is it possible for a mysql statement to select any field from any table ?
for example :
SELECT * FROM * WHERE ? IN (SELECT * FROM *) to implement a generic search method which doesn’t depends on a specific table or field. i’ve just read that we can list all tables of a database with a, SQL command : SHOW TABLES
Do you have any idea about how can we do this ?
Thank you 🙂
is it possible for a mysql statement to select any field from any table
Share
You could try something like this in php
Then you got all your tables and you can build your query
like this