Skip to content

SELECT: DAYOFYEAR

Ali Amirnezhad edited this page Jul 23, 2019 · 1 revision
const query = myQueryBuilder
    .SELECT({ $DAYOFYEAR: 'field' })
    .from('table')
    .get();

// SELECT DAYOFYEAR(`field`) FROM `table`
const query = myQueryBuilder
    .SELECT({ $DAYOFYEAR: { field: 'fieldDAYOFYEAR' } })
    .from('table')
    .get();

// SELECT DAYOFYEAR(`field`) AS `fieldDAYOFYEAR` FROM `table`
Clone this wiki locally