postgresql - Using a list on a query condition in Erlang -
i've got variable1
consists of list: [1, 5]
i'm trying prepare statement reads follows:
select field1, field2, field3, field4 tab_name field1 = variable1
but works if variable1 has 1 value. if has more (e.g. 1 , 5), error.
what's correct syntax?
Comments
Post a Comment