当前所在位置:珠峰网资料 >> 计算机 >> Oracle认证 >> 正文
Oracle更改表的主键
发布时间:2010/10/8 10:40:35 来源:www.xue.net 编辑:城市总裁吧
 1.先删除主键

  alter table T_SF_SUPPLIER drop constraint PK_T_SF_SUPPLIER;

  2.增加主键

  alter table T_SF_SUPPLIER

  add constraint PK_T_SF_SUPPLIER primary key (sp_id)

  using index

  tablespace SYSTEM

  pctfree 10

  initrans 2

  maxtrans 255

  storage

  (

  initial 64K

  minextents 1

  maxextents unlimited

  );

广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved