Skip to content

SELECT: UNHEX

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

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

// SELECT UNHEX(`field`) AS `fieldUNHEX` FROM `table`
Clone this wiki locally