Skip to content

SELECT: REVERSE

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

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

// SELECT REVERSE(`field`) AS `fieldREVERSE` FROM `table`
Clone this wiki locally