Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to check value in a comma delimiter in sql query

VimalPSNov 1 2018 — edited Nov 2 2018

Hi Folks,

I have a column in table which has data like this.

pastedImage_1.png

So, my requirement is just to return rows which having string only as 'toys' in this comma separated value.

ie.in my output should be something like this..

toys

toys

toys,toys

toys,toys,toys

Is it possible to achieve it in a where condition directly.Any regex is available to check this condition.

select item

from table

where (...condition...) = 'toys';

Please help on this problem.

Thank You.

This post has been answered by VimalPS on Nov 1 2018
Jump to Answer

Comments

Processing

Post Details

Added on Nov 1 2018
26 comments
7,327 views