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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -