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