$select->from(array('u'=>'user'),array('count'=>'distinct count(*)'))
->joinLeft(
array('d' => 'details'),
'u.detailsid = d.detailsid',
array());
我有:
SELECT * FROM user
LEFT JOIN details ON
details.detailsid = user.detailsid;
但是哪里count
适合呢?