Re: Re: PDO question: any way to resolve duplicate column names with PDO_FETCH_ASSOC?
| From: | Wez Furlong | Date: | Thu, 19 May 2005 16:28:42 +0000 |
| Subject: | Re: Re: PDO question: any way to resolve duplicate column names with PDO_FETCH_ASSOC? | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2376@lists.php.net to get a copy of this message | ||
Greg,
He needs to be able to magically do the right thing given an arbitrary
SQL statement.
It's perfectly legitimate to have multiple columns with the same name.
--Wez.
> SELECT table1.id as table1_id, table2.id as table2_id, table1.*, table2.*
>
> in your sql query (nothing to do with PDO, in other words)
>
> Greg
>
> --
> PECL development discussion Mailing List (http://pecl.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>