postgresql - How to SELECT parts from a comma-separated field with a LIKE statement -


i have field in database filled this:

  1,4,8,14,16 

now, i'd query field parameter - or similar. is, receive parameter via form, , looking row in table has in above mentioned field number.

that parameter example "14". , can query

 select * my_table my_field '14' 

that works fine.

but if value "4", have problem, because result being returned "4" , "14". using comma additional separator isn't useful either...

i guess either flaw in (the simple) database layout. or missing simple approach query... advice!


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 -