Skip to content

SELECT: WEEK

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

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

// SELECT WEEK(`field`) AS `fieldWEEK` FROM `table`
Clone this wiki locally