Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Wildcard Problem
RanLi schrieb:
> harry_johnson_4_you_at_yahoo.com skrev:
> > > does a "select * " work? > The syntax seems ok. It worked on my tables. >
As Frank already suspicted, the problem is probably char(n) - i assume it is a char(5) column definition. Shorter than 5 strings are padded to the defined column length with blanks, that is why the query above returns no rows, the condition length(column1)=2 is false for all the rows in the table. It can be workarounded among other with length(trim(column1))=2.
Best regards
Maxim Received on Thu Oct 19 2006 - 07:58:06 CDT
![]() |
![]() |