->query() -- send a raw query
Описание
Sends a raw query to database. Often you may consider that using a large number of
whereAdd's and orderBy method calls are not neccessary, and it would be simpler to just
write the query, to make the code clearer and shorter.
Заметка
Эта функция не должна вызываться статически.
Пример
Пример 34-1. raw queries on the database $person = new DataObjects_Person;
$person->query("SELECT * FROM {$person->__table} WHERE id > 12 ORDER BY id");
while ($person->fetch()) {
echo $person->name;
} |
|
HIVE: All information for read only. Please respect copyright! |
|