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 -> Re: problem with like

Re: problem with like

From: thierry <thierry.constant2_at_wanadoo.fr>
Date: Thu, 20 Sep 2001 15:03:28 GMT
Message-ID: <3BAA0574.70333A8A@wanadoo.fr>


Anurag Varma a écrit :

> I guess the deeper problem is the datatype CHAR!
> So a name like 'mat' will be stored as 'mat[17 spaces]'
> For this very reason the datatype 'VARCHAR2' exists.
>
> Try
> select * from table where rtrim(column) like '%t'
>
> ... and if you want case insensitive also then:
> rtrim(upper(column)) like '%t'
>
> Anurag

Thanks, you are right !!!!! Received on Thu Sep 20 2001 - 10:03:28 CDT

Original text of this message

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