Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

knex.raw postgres how to add multiple parameters

const query = `
SELECT * FROM users
WHERE users.id = :value1 AND users.email = :value2;
`

const params = {value1:userId, value2:userEmail}
const res = knex.raw(query, params)
 
PREVIOUS NEXT
Tagged: #postgres #add #multiple #parameters
ADD COMMENT
Topic
Name
6+6 =