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