Tag: node.js pg

在Nodejs和Postgres中input错误

我正在根据postgres提供的对象列表生成dynamic更新查询。 这是我的查询看起来像: update loan_item_assignment as t set id = c.id, dateselectionid = c.dateselectionid, loanitemid = c.loanitemid, active = c.active, type = c.type from (values ( $1, $2, $3, $4, $5 ), ( $6, $7, $8, $9, $10 ), ( $11, $12, $13, $14, $15 ), ( $16, $17, $18, $19, $20 ), ( $21, $22, […]