2013年1月28日

oracle已有数据表添加主键

摘要: 1.先添加字段。 alter table tablename1 add(columnId int); 2.修改主键字段的值为rownum的值 update tablename1b set B.columnId= rownum;commit;3.直接在PL/SQL等工具修改该字段为主键。commit:完成 阅读全文

posted @ 2013-01-28 14:35 ruonanxiao 阅读(4076) 评论(0) 推荐(0) 编辑

导航