-
Notifications
You must be signed in to change notification settings - Fork 0
SELECT: FORMAT
Ali Amirnezhad edited this page Jul 24, 2019
·
1 revision
const query = myQueryBuilder
.SELECT({ $FORMAT: 'field', $ARGS: [2] })
.from('table')
.get();
// SELECT FORMAT(`field`, 2) FROM `table`
const query = myQueryBuilder
.SELECT({ $FORMAT: 'field', $ARGS: [2, '$de_DE'] })
.from('table')
.get();
// SELECT FORMAT(`field`, 2, 'de_DE') FROM `table`
const query = myQueryBuilder
.SELECT({ $FORMAT: { field: 'fieldFORMAT' }, $ARGS: [2] })
.from('table')
.get();
// SELECT FORMAT(`field`, 2) AS `fieldFORMAT` FROM `table`
const query = myQueryBuilder
.SELECT({ $FORMAT: { field: 'fieldFORMAT' }, $ARGS: [2, '$de_DE'] })
.from('table')
.get();
// SELECT FORMAT(`field`, 2, 'de_DE') AS `fieldFORMAT` FROM `table`