I have a table (that contains data) in Oracle 11g and I need to use Oracle SQLPlus to do the following:
Target: change the type of column TEST1 in table
Here you go, this solution did not impact the existing NOT NULL or Primary key constraints. Here i am going to change the type of Primary key from Number to VARCHAR2(3), Here are the Steps on example table employee.
create table employee_bkp as select * from employee
commit;truncate table employeeALTER TABLE employee MODIFY employee_id varchar2(30);insert into employee (select * from employee_bkp)
commit;