Re: DB_DataObject - SQL statement
| From: | David Sanders | Date: | Tue, 05 Jun 2007 09:01:30 +0000 |
| Subject: | Re: DB_DataObject - SQL statement | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27413@lists.php.net to get a copy of this message | ||
I know at least with old DB, you could fetch the last query executed... you'll have to look it up in the manual though I can't remember it ;)
Rodrigo Elias wrote:
Hi there! Well, i have one question about DB_DataObject. Its possible to get the SQL statement that has been used on an query? Example: $person = &DB_DataObject::factory('person'); $num_rows = $person->get($id); How can i proceed to get the: "select * from person where id = 1". Thanks in advance! Rods-- David Sanders shangxiao