1,先把char(2)转出varchar2(2) ,长度要对
alter table A modify status varchar2(2);
2 ,把字段去区空格
update A set status=trim(status);
3,在更新长度为1的
alter table A modify status char(1);
注意:如果长度过长,更新是没用的,必须删除过长的字段
1,先把char(2)转出varchar2(2) ,长度要对
alter table A modify status varchar2(2);
2 ,把字段去区空格
update A set status=trim(status);
3,在更新长度为1的
alter table A modify status char(1);
注意:如果长度过长,更新是没用的,必须删除过长的字段