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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -