sql - Oracle find values in varchar -


is there chance find exact value in varchar using oracle sql?

i need find exact value in string (see output).

this sql output:

rights (varchar) ----- #1  ( id in ( 1560 , 1760 , 1860 , 20200 , 3530, 16000 ) )  #2  ( id in ( 1600 , 20000 , 100000 ) )  

i want filter example string 1600 , 1660.

in case #2 should shown.

i tried and table1.rights '%1600%' of course doesnt work because shows me #1 wrong.

i found using split cant integrate

http://lalitkumarb.com/2014/12/02/split-comma-delimited-string-into-rows-using-oracle-sql/

any ideas?

i found using split cant integrate

http://lalitkumarb.com/2014/12/02/split-comma-delimited-string-into-rows-using-oracle-sql/

good see following blogs , articles :-)

no need split string, use like in following way consider space before/after 1600 , no other characters:

sql> data(str) as(   2  select '#1  ( id in ( 1560 , 1760 , 1860 , 20200 , 3530, 16000 ) )' dual union   3  select '#2  ( id in ( 1600 , 20000 , 100000 ) )' dual   4  )   5  select * data   6  str '% 1600 %';  str ---------------------------------------------------------- #2  ( id in ( 1600 , 20000 , 100000 ) )  sql> 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -