Skip to content

SELECT: MONTHNAME

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

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

// SELECT MONTHNAME(`field`) AS `fieldMONTHNAME` FROM `table`
Clone this wiki locally