-- 修改表列类型(表中有数据) -- 1、新增临时列(JXKH6609_TEMP) ALTER TABLE JXKH66 ADD JXKH6609_TEMP VARCHAR2(36); -- 2、将JXKH6609列值复制到临时列JXKH6609_TEMP中 UPDATE JXKH66 SET JXKH6609_TEMP = JXKH6609; -- 3、删除JXKH6609列(类型:NUMBER) ALTER TABLE JXKH66 DROP COLUMN JXKH6609; -- 4、创建JXKH6609列(类型:VARCHAR2(36)) ALTER TABLE JXKH66 ADD JXKH6609 VARCHAR2(36); -- 5、复制临时列(JXKH6609_TEMP)到JXKH6609中 UPDATE JXKH66 SET JXKH6609 = JXKH6609_TEMP; -- 6、删除临时列JXKH6609_TEMP ALTER TABLE JXKH66 DROP COLUMN JXKH6609_TEMP;