Skip to content

SELECT: HOUR

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

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

// SELECT HOUR(`field`) AS `fieldHOUR` FROM `table`
Clone this wiki locally