|
|
(Next) ->groupBy() |
||||
| |
|||||
|
|||||
void $DB_DataObject->orderBy (
string $order
)
order by 条件を追加します。 パラメータなしでコールすると、現在の order 条件をクリアします。
string $order - 順序を指定します
This function can not be called statically.
設定オプション quote_identifiers は、orderBy に送るデータには影響を及ぼしません。
order by のセット
<?php
$person = new DataObjects_Person;
$person->orderBy('name');
$person->orderBy('age, eye');
$person->find();
// or with direction:
$person = new DataObjects_Person;
$person->orderBy('name ASC');
$person->orderBy('age DESC, eye');
$person->find();
?>
結果の SQL
|
|
(Next) ->groupBy() |
||||||||
| |
|||||||||
|
|||||||||