Re: ??? java.lang.String does not maps onto Oracle CHAR ???
Posted By:
Bernie_Acs
Posted On:
Friday, December 21, 2001 06:37 AM
The datatype of choice would be VARCHAR2 versus CHAR. CHAR are always a fixed length for both reference and storage while VARCHAR2 would be variable for both reference and storage..
ALTER TABLE yourtable MODIFY ( thecolumn VARCHAR2(20) )
Re: ??? java.lang.String does not maps onto Oracle CHAR ???
Posted By:
Peter_Karlsson
Posted On:
Friday, December 21, 2001 05:51 AM
Oracle datatype char(20) means exactly 20 characters, so I guess it will work with
select * from table where text='Peter '
This will also work (I think):
select * from table where trim(text) = 'Peter';
I dont remember it its trim() or what to use (I dont use Oracle for the moment).
Remember that in the last command indexes can not be used.