Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Order By Problem 1

Status
Not open for further replies.

DanAuber

IS-IT--Management
Joined
Apr 28, 2000
Messages
255
Location
FR
I'm sure this isn't the first time this has been asked.

If I order by a certain column - varchar but holding numbers I get 2,20,21,22 rather than 2,3,4,5. Is there a quick way around this in the order by clause ?
Dan Auber



Dan Auber
 
Can you use to_number? As in:

to_number (string1, [format_mask], [nls_language] )

string1 is the string that will be converted to a number.

format_mask is optional. This is the format that will be used to convert string1 to a number.

nls_language is optional. This is the nls language used to convert string1 to a number.

HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top