Re: How can I make a simple "SELECT *" with DB_QueryTool_Query
| From: | Lorenzo Alberton | Date: | Thu, 10 Nov 2005 15:11:45 +0000 |
| Subject: | Re: How can I make a simple "SELECT *" with DB_QueryTool_Query | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21870@lists.php.net to get a copy of this message | ||
Antonio Luis Batista wrote:
Hi all
Im using DB_QueryTool_Query to make my sql strings, Ive make some experiments but one thing that I can't do is to put a simple
"SELECT * FROM foo" , using $baa->setSelect('*'); dont work, I have achieved to do this with $baa->setSelect(' *') but I want to know if there is other less "tricky" way , more official to do it.
setSelect('*') is expanded to the full list of
"table.field" values. That's by design, to allow
further table joins.
There's no "official" way to have "SELECT * FROM foo"
back from getQueryString(), apart from the trick you've
found (and it may not work in the future).
Anyway, why do you need the star?
Doesn't the expanded query return the same resultset?
Best regards,
--
Lorenzo Alberton
http://pear.php.net/user/quipo