You are here: Re: mysql_field_database()? « PHP Programming Language « IT news, forums, messages
Re: mysql_field_database()?

Posted by Erwin Moller on 09/28/73 12:01

Mango wrote:
> Captain Paralytic wrote:
>>
>> Suppose he is querying:
>> SELECT
>> *
>> FROM db1.table
>> JOIN db2.table USING(id)
>
> That is exactly the kind of situation I am anticipating. If anyone has
> any suggestions, that would be great.
>
> -Mango

Hi Mango,

Well, in that case, you can simply mark your columns.
And don't use * to select columns.

Like this:
SELECT
db1.userid as db1_userid,
db1.name as db1_name,
db2.userid as db2_userid,
db2.city as db2_city
FROM db1.tbluser
JOIN db2.tblcity etc etc.

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация