Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Varchar search is very literal

Varchar search is very literal

From: <jgotthelf_at_my-deja.com>
Date: Wed, 30 Aug 2000 20:23:54 GMT
Message-ID: <8ojqfu$8k5$1@nnrp1.deja.com>

Hi,

I have found that with a varchar2 field that searches seem to care about trailing spaces, i.e.:

create table fred (fld1 varchar(10))
insert into fred values ('cat ') -- 4 spaces after 'cat' commit

select * from fred where fld1 = 'cat'

returns zero rows. With regular 'Char' this works just fine.

Is there a way to alter this behavior, or is this just the way it is?

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Aug 30 2000 - 15:23:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US