Jump to content

Can I get fully qualified column names with pdo?


iansmith

Recommended Posts

Using the PDO fetch functions with PDO::FETCH_ASSOC gets you an array keyed on the column names.

 

This is a problem if you have multiple tables with the same column names. 

 

Is there any way to have it return the table and column name?  Otherwise I need to do long lists of 'as' names in my SELECTs.

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.