Zend DB-Max Time不返回最新时间


Zend DB - Max Time does not return the latest time

我有下面的带有时间戳的表值。

[ttimestamp] column
2013-07-11 11:52:19
2013-07-11 11:52:23
2013-07-11 11:52:27

但是,它没有使用以下查询返回最新时间,而是返回最小的。。。为什么?

$select = $this->dbo->select(array("MAX(ttimestamp)"))
    ->from(array('t' => 'table'));

有一个错误报告http://bugs.mysql.com/bug.php?id=54784.不确定你的跑步版本。但如果您执行MAX(UNIX_TIMESTAMP(ttimestamp))

,它应该会起作用