Skip to content

SELECT: RTRIM

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

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

// SELECT RTRIM(`field`) AS `fieldRTRIM` FROM `table`
Clone this wiki locally