Modify char(1) of column TYPE of table PTLOG to varchar(2) type?
Add a new column TYPE_2 to the PTLOG table:
ALTER TABLE PTLOG ADD TYPE_2 VARCHAR2(2) default NULL;
Update TYPE_2 to be consistent with TYPE:
update PTLOG SET TYPE_2 = TYPE ;
Delete TYPE column
ALTER TABLE PTLOG DROP COLUMN TYPE;
renameTYPE_2列为TYPE
ALTER TABLE PTLOG RENAME COLUMN TYPE_2 TO TYPE;