Hi All,
Problem:
In my store procedure, I have a column ABC which data-type has varchar2. Column ABC contain numeric and non-numeric values. I would like to convert varchar2 to in Number. When I am using to_Number() function, it throw me "invalid Number" error. When I used "regexp_like(ABC, '^[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?$') " function, working fine in oracle but when I am executing same query in crystal, getting same invalid error.
Below is the column 'ABC' data
87632.98
AKDD-sks
12-09-2012
3876
987634
Requirement:
If there is Non_Numeric values in column ABC then change to Null and rest simple display.
What should I do to be able to convert all fields to number in order to execute in crystal (executing in Toad (oracle) is fine).
Thank you all in advance!
Problem:
In my store procedure, I have a column ABC which data-type has varchar2. Column ABC contain numeric and non-numeric values. I would like to convert varchar2 to in Number. When I am using to_Number() function, it throw me "invalid Number" error. When I used "regexp_like(ABC, '^[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?$') " function, working fine in oracle but when I am executing same query in crystal, getting same invalid error.
Below is the column 'ABC' data
87632.98
AKDD-sks
12-09-2012
3876
987634
Requirement:
If there is Non_Numeric values in column ABC then change to Null and rest simple display.
What should I do to be able to convert all fields to number in order to execute in crystal (executing in Toad (oracle) is fine).
Thank you all in advance!