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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Character Conversion question

Status
Not open for further replies.

mahali

Technical User
Jan 30, 2007
25
0
0
DE
Hi there,

I have just discovered a strange effect, maybe one of you has an explanation: there is a select-statement in a pl/sql-procedure where there is a multiplication of a number and a varchar2-value and, which works perfectly well. If I copy the select-statement and execute it "stand-alone" I am getting the error-message "Invalid number", because of the fact that there is a '.' as decimal separator in the varchar2 field insteas of a ','.
So my question now is if the implicit conversion is handled differently in oracle, depending on the "location" of the statement.

I hope this is not too confusing..???

Thank you very much in advance,
Mahali
 
It may be related to your NLS settings. If you're using a comma in place of a decimal point, you must have some region-specific settings.
 
Mahali,

Could you please post the offending code?

Mahalo.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top