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: a problem in about CHAR column in the select statement

Re: a problem in about CHAR column in the select statement

From: Mark D Powell <mark.powellNOmaSPAM_at_eds.com.invalid>
Date: 2000/07/07
Message-ID: <05d85908.799bcb7e@usw-ex0103-024.remarq.com>#1/1

I do not know anything about JAVA to Oracle but it sounds like your table is defined with a char column. You might want to try redefining it to be varchar2.

You may also want to check the JAVA documentation for JAVA datatype to Oracle conversion rules to see if changing the datatype will affect the comparison.

In worst case you should be able to use the rtrim(col) to remove trailing blacks from the database column data; however using a function on the column will disable retriving the data via an index which is probably not good.

If the table column is varchar2 check to see if trailing blanks, nulls, or newlines were stored in the column. It is possible to do that and you can use the ltrim function in an update statement to clean the data and then retest.

I hope this helps until someone more knowlegable about JAVA sees your post.


Got questions? Get answers over the phone at Keen.com. Up to 100 minutes free!
http://www.keen.com Received on Fri Jul 07 2000 - 00:00:00 CDT

Original text of this message

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