Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: LIKE
select * from tabname
where instr(replace(colx,' ',''),'A,') > 0
should do the job
"Roger Smith" <rsmith22_at_fastmail.net> wrote in message news:<KGWgb.11908$Sg4.11682_at_edtnps84>...
> Hi,
>
> I want to query a comma delimted field in a table that has theses values:
>
> A, B
> A
> AB, C
> A, C
> C
>
>
> if I do...where comma_field like ('%A%') it will return row 3 (I only want
> the rows that contain A). I don't want to search for A, or A[blank]. Is
> there some other way like field length = 1?
>
> Roger
Received on Wed Oct 08 2003 - 17:42:16 CDT