Re: get table names

From: Date: Mon, 05 Feb 2007 11:50:24 +0000
Subject: Re: get table names
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26500@lists.php.net to get a copy of this message
----- Original Message ----- From: "Alexey Borzov" <borz_off@cs.msu.su> Newsgroups: php.pear.general To: "Marco Sottana" <marco.sottana@q-web.it> Cc: <pear-general@lists.php.net> Sent: Friday, February 02, 2007 3:26 PM Subject: Re: [PEAR] get table names
Hi, Marco Sottana wrote:
select * from table1 left join table2 on table1.id_table2=table2.id if i execute this query with getColumnNames() i get the name of the cols .. i would like to get for each cols also the name of the table
select foo from table_one union select foo from table_two; what table name do you expect to get for field "foo" of that query?
getColumnNames=array("foo","foo"); getTablesNames=array("table_one","table_two");

« previous php.pear.general (#26500) next »