Skip to content
Advertisement

Got an error while executing query {“statusCode”:500,”error”:”Internal Server Error”,”message”:”syntax error at or near “)””}

I have a db with a primary key address

I want to write a request that would delete rows that match the address that I pass in the array.

I have this in my missing-urls.js file

and use this query in my query/missing-urls.js file

When I run this request

I got an error.

What I am doing wrong?

Advertisement

Answer

You should use any operator column = any(?)

If you use node-postgres driver your code look like this:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement