Skip to content

SELECT: BIT_LENGTH

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

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

// SELECT BIT_LENGTH(`field`) AS `fieldBIT_LENGTH` FROM `table`
Clone this wiki locally