删除主键
刪除表中已有的主鍵約束
(1)有命名
alter table students drop constraint yy;
(2)無命名
可用 SELECT?? *?? from?? user_cons_columns;
查找表中主鍵名稱得student表中的主鍵名為SYS_C002715
alter table student drop constraint SYS_C002715;
or
alter table ptrs_config drop primary key
3、向表中添加主鍵約束
alter table student add constraint pk_student primary key(studentid);?
與50位技術專家面對面20年技術見證,附贈技術全景圖
總結
- 上一篇: racle B-Tree和Bitmap索
- 下一篇: Excel 打开csv显示在一个单元格