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

Posted by Captain Paralytic on 09/27/34 12:01

On 28 Jan, 09:55, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spamyourself.com> wrote:
> Mango wrote:
> > I'm working with queries that involve more than one database and am
> > trying to figure out a way to determine which database a particular
> > field came from. I've used mysql_field_name and mysql_field_table for
> > field & table names but there does not seem to be a
> > mysql_field_database() function.
>
> > Any pointers on writing one? :)
>
> > -Mango
>
> Hi,
>
> I have no clue, but I am suprised you cannot tell where which data came
> from.
> You must be using multiple connections to different databases, so you
> should know what field you retrieve from where.
>
> Or do I miss something?
>
> Erwin Moller

Suppose he is querying:
SELECT
*
FROM db1.table
JOIN db2.table USING(id)

 

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

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