Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

knex.js count

knex('users').count('active', {as: 'a'})Outputs:select count(`active`) as `a` from `users`
Source by knexjs.org #
 
PREVIOUS NEXT
Tagged: #count
ADD COMMENT
Topic
Name
8+9 =