更新时间:2023-01-30 12:37:39
我相信这是您要寻找的:
I believe this is what you are looking for:
$name = 'John';
$order = new Zend_Db_Expr($this->getAdapter()->quoteInto("name = ?", $name) ." DESC, `name`");
$select = $this->select();
$select->order($order);
return $this->fetchAll($select);