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!

like operator

user650888May 7 2012 — edited May 7 2012
CREATE TABLE GVTEMP

TRUNCATE TABLE GVTEMP;

INSERT INTO GVTEMP VALUES (1,'MYABC');

INSERT INTO GVTEMP VALUES (2,'MYXYZ');

SELECT * FROM GVTEMP;

SELECT * FROM GVTEMP WHERE X LIKE ('%ABC%,%XYZ%');
how can I select both the rows with a single select using like operator ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2012
Added on May 7 2012
4 comments
175 views