0

SQL syntax for retrieving multiple results from three tables.

I have been able to retrieve multiple records from the same table by the syntax; $sql="SELECT * FROM myTable "; in phpMyadmin. But how to retrieve multiple / many records from different tables?

9th Jul 2017, 6:54 AM
Jumanne K
Jumanne K - avatar
3 odpowiedzi
+ 3
If you want to mix some fields from several tables you can use JOIN. But you can't grab all records from several tables with SELECT * because there are differences amongst their structure, number of fields etc.
9th Jul 2017, 10:16 AM
Ipang
+ 1
Thanks Ipang hope this will help me a lot.
13th Jul 2017, 3:50 AM
Jumanne K
Jumanne K - avatar
+ 1
Thanks Ipang it worked as i expected
3rd Jun 2018, 3:01 PM
Jumanne K
Jumanne K - avatar