Update Postgresql Database With Node.js
I am trying to update a PostgreSQL table so for that I'm creating two arrays: var name_ = []; var id_ = []; Then I create a forEach loop where MyRow is a query that contains diff
Solution 1:
I'm not sure the error is related, but where is shema mentioned? Also use backticks, oneLine and const on template strings.
const updateAccount = oneLine`
UPDATE myTable
SET myRow =$1WHERE shema.id =$2--whereis `shema` defined?
`;
Post a Comment for "Update Postgresql Database With Node.js"