I am working on a mysql based project. I need to find out data from more than one table.
I have searched and found a solution like
SELECT * from table_1, table_2 where (condition)
But such a solution is fine for few tables,and I have about 57 tables in my database.
Please let me know solution.
Thanks in advance.
Sounds like you want to JOIN your tables. e.g.:
Unfortunately if you want data from all 57 tables, you will need to JOIN all 57 of them.
The syntax you have used (ANSI 89), while it will work is generally best avoided (I believe there are times when Oracle will optimise these better), ANSI 92 joins are less prone to user error, and (to most people) more legible because the JOIN condition comes immediately after the table. Aaron Bertrand has written a good article on reasons to use ANSI 92 syntax over ANSI 89.