Closed hawktian closed 5 years ago
i only want to search 'max(filed) as max' without any other fields but the select() method set columns as * default is this $pdo->select(array('max(field) as max')) the only way?
Hi Tonvin,
Are you using version 1 or version 2 of the library.
If you are using version 2, you can do $pdo->select(array('max' => new Method('MAX', 'field')))
$pdo->select(array('max' => new Method('MAX', 'field')))
i only want to search 'max(filed) as max' without any other fields but the select() method set columns as * default is this $pdo->select(array('max(field) as max')) the only way?