Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres insert knex

// Returns [1] in "mysql", "sqlite", "oracle"; [] in "postgresql" unless the 'returning' parameter is set.
knex('books').insert({title: 'Slaughterhouse Five'})Outputs:insert into `books` (`title`) values ('Slaughterhouse Five')
Source by knexjs.org #
 
PREVIOUS NEXT
Tagged: #postgres #insert #knex
ADD COMMENT
Topic
Name
3+5 =