Re: Join table with clashing fieldnames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kris Leech wrote:
I have an SQL query which has a simple join, this works and is fine the fields from the secondary table are added to the returned array. But what happens if I add another JOIN to a table which has fields which are the same name? Is there any way to have PHP prefix the key's (fieldnames) of the joined fields?

Many thanks, Kris.



1. This is a SQL question and not a php one.

2. select a.name as aname, b.name as bname, c.name as cname where
a.id=b.id and a.id=c.id from a,b,c

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux