我目前正在使用http://vitaly-t.github.io/pg-promise/Database.html中的数据库类,并尝试在 Postgres DB 上使用PreparedStatment 实现 Update 语句,同时将数组传递到 WHERE IN条款?
const updatePreparedStatment = new PS('prepared-statement', 'UPDATE mytable SET "MESSAGE"=$1 WHERE "ID" IN ($2)', ["dummy update", ["1","2","3"]]);
Run Code Online (Sandbox Code Playgroud)