-3
Ich habe drei Tabellen namens table1, table2 und table3 jede Tabelle enthält einen Primärschlüssel. Produkttabelle für alle drei Tabellen. die den gesamten Primärschlüssel der drei Tabellen enthalten. nein ich möchte die Produktdetails als verschachteltes Array anzeigen, wie kann ich das tun?Wie alle Produkte mit Join in mysql anzuzeigen
table1 contains:
name
id
table2 contains:
name
id
table3 contains:
name
id
products table
id
name
description
table1_id
table2_id
table3_id
my output like
table1
{
name
{ products.name, products.description },
{ products.name, products.description }
}
table2
name { products.name, products.description },
{ products.name, products.description }
}
table3
{
name {products.name, products.description},
{ products.name, products.description }
Mögliche Duplikat [SELECT \ * aus mehreren Tabellen. MySQL] (http://stackoverflow.com/questions/12890071/select-from-multiple-tables-mysql) – Tom
können Sie bitte erarbeiten Sie Ihre Antwort –
Die Frage, die ich sagte, es ist ein mögliches Duplikat enthält die Antwort, die Sie suchen . – Tom