-
Notifications
You must be signed in to change notification settings - Fork 0
SELECT: DISTINCT
Ali Amirnezhad edited this page Jul 23, 2019
·
3 revisions
const query = myQueryBuilder
.SELECT({ $DISTINCT: 'field' })
.from('table')
.get();
// SELECT DISTINCT(`field`) FROM `table`
const query = myQueryBuilder
.SELECT({ $DISTINCT: { field: 'fieldDISTINCT' } })
.from('table')
.get();
// SELECT DISTINCT(`field`) AS `fieldDISTINCT` FROM `table`