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!

part of a string contained in one element list's strings

943967Jun 15 2012 — edited Jun 15 2012
Hi evebody,
I have process that use this sql request :

SELECT $code
FROM DUAL
WHERE $code IN ('BMW','MERCEDES','TOYOTA','PEUGEOT');

Actually, the code is a string which value is car brand. for example 'BMW'.

I want to change my process and have the possibility to put in $code multiples car brand separated by '||' . For example, 'BMW||RENAULT'.

In this way, howa could I change my sql request?

ie I want to check if a part of string exists in a element list's string.

PLEASE HELP ME

THANKS
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2012
Added on Jun 15 2012
7 comments
371 views