If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Char to Int

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-03, 09:08
Hello2Lu Hello2Lu is offline
Registered User
 
Join Date: Jun 2002
Location: BE
Posts: 4
Char to Int

Hello,

can you explain to me how to convert a String to a number in a select statement with oracle RDB

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 10-13-03, 13:34
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Char to Int

TO_NUMBER(string)
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 10-14-03, 02:06
Hello2Lu Hello2Lu is offline
Registered User
 
Join Date: Jun 2002
Location: BE
Posts: 4
Thanks for your response, but it don't work, probably because Oracle RDB

Error message :

Error: %SQL-F-RTNNOTDEF, function or procedure TO_NUMBER is not defined (State1000, Native Code: FFFFFFFF)
Reply With Quote
  #4 (permalink)  
Old 10-14-03, 04:04
Hello2Lu Hello2Lu is offline
Registered User
 
Join Date: Jun 2002
Location: BE
Posts: 4
With the CAST functon that's working

select cast(substring(arbores_id from 6 for 5) as integer)+1 from t_arborescence

Thanks for all.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On