Skip to content

SELECT: DATE

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

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

// SELECT DATE(`field`) AS `fieldDATE` FROM `table`
Clone this wiki locally