(like DISTINCT, SQL_CALC_FOUND_ROWS etc):
$db->select('SQL_CALC_FOUND_ROWS')->from('Table')->where(...)
or
$select = new Zend_Db_Select($db, 'SQL_CALC_FOUND_ROWS');
The idea is that everything that gets passed as the second parameter in
the call to the select constructor would be added right after SELECT in
the resulting query string.
I know i would like it, maybe someone else would to? :)
Regards,
Johan Isacsson
没有评论:
发表评论