Skip to content

SELECT: SECOND

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

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

// SELECT SECOND(`field`) AS `fieldSECOND` FROM `table`
Clone this wiki locally