|
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]
|