Bu sorgu varsa:
SELECT tableA.Id, tableB.Id FROM tableA JOIN tableB ON (tableA.bId = tableB.Id)
Ben php bu deneyin Şimdi eğer ben bazı sorunlar var:
while($result = mysql_fetch_array(mysql_query(/Query Above/)){
print $result['tableB.Id'];
}
Şimdi ben sana ben benim sorgu yapmak gerektiğini söylemek için gidiyoruz ne biliyor:
SELECT tableA.Id AS aId, tableB.Id AS bId
FROM tableA
JOIN tableB ON (tableA.bId = tableB.Id)
ve sonra kullanın: $result['bId']
But the fact is the query is actually like this:
SELECT tableA.*, tableB.* FROM tableA JOIN tableB ON (tableA.bId = tableB.Id)
Is there any way i can get the result in PHP without doing the AS for each individual matching row?
Teşekkürler