Hi,
I have a table "Myemp". In this table I have a column stats "Phone_number" which is the in Varchar(15) format and also it has default value as 'XXX-XXX-XXXX'. So now I wish to change this datatype to Number(15). I removed all the values in this column. when I was trying to change the data type it throws an error stats that "ORA-01722: invalid number". How could I change that datatype. My query and table structure are follows.
Alter table Myemp modify phone_number number(15);
ORA-01722: invalid number
Desc Myemp;
Thanks in advance,
Dinesh Kumar.