Npgsql statement 'in' pass an array of strings -
i know question exists in: how pass parameter sql 'in' statement?
but answers didn't me, asking guidance.
how pass string array parameter npgsql statement? let's statement goes this:
string[] names = new string[] { "one", "two" };
adapter.selectcommand.commandtext("select something.name (a lot of inner joins) something_else.name in (:names) group something.name having count(*)=2; ");
try:
where something_else.name = any(:names)
Comments
Post a Comment