DB_DataObject - SQL statement
| From: | Rodrigo Elias | Date: | Tue, 05 Jun 2007 07:12:22 +0000 |
| Subject: | DB_DataObject - SQL statement | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27412@lists.php.net to get a copy of this message | ||
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