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: less than, index and string

Re: less than, index and string

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 14 Feb 2006 07:02:58 -0800
Message-ID: <1139929378.406790.303580@g44g2000cwa.googlegroups.com>


tmp123, how are the strings to be compared? That is, the character values '123' compares as less than '14' while the numeric value of 14 is less than 123.

Based on the answer you should probably either choose varchar2 or number(10,0) as your datatypes.

With only a three column row where two of the three values are used in the search condition (where clause) I would consider using an IOT to house the data. The PK being cmin and cmax.

HTH -- Mark D Powell -- Received on Tue Feb 14 2006 - 09:02:58 CST

Original text of this message

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