postgres nodejs dynamic parameterized query code example
Example: node pg array in
client.query(
"SELECT * FROM stooges WHERE name = ANY ($1)", [
['larry', 'curly', 'moe']
]
);
client.query(
"SELECT * FROM stooges WHERE name = ANY ($1)", [
['larry', 'curly', 'moe']
]
);