【发布时间】:2011-08-19 06:44:56
【问题描述】:
查询:
select * from table_name ORDER BY name like 'C%' DESC;
此查询在 MySql 中运行良好,但我无法使用 Zend DB 构建查询。 执行时出错。
PHP 数据库代码:
$result = $this->getDefaultAdapter()
->select()
->from($this->_name,array('*'))
->order("name like 'C%' DESC")
->query()
->fetchAll();
错误:
未找到列:1054 未知列 'name like 'C%'' in 'order Clause'提前致谢
【问题讨论】:
标签: php zend-framework mysql-error-1054