oracle如何查看表的主鍵 怎么給oracle給表增加一個(gè)主鍵?
怎么給oracle給表增加一個(gè)主鍵?相關(guān)SQL請(qǐng)參考:1。創(chuàng)建表時(shí),指定表的主鍵create table tmp(id int primary key not null,name VARCHAR2(2
怎么給oracle給表增加一個(gè)主鍵?
相關(guān)SQL請(qǐng)參考:1。創(chuàng)建表時(shí),指定表的主鍵
create table tmp(id int primary key not null,name VARCHAR2(20))
2。通過SQL在原表中添加主鍵
alter table tmp Add constraint PKuid primary key(id)
怎么給oracle給表增加一個(gè)主鍵?
插入表名(dno,dName,dtelephone,ddean,address)值(“018”,“College of electrical engineering”,“67783113”,“Jiao Liucheng”,“zhou University”),然后提交或檢查ROWID,然后使用PLSQL手動(dòng)插入它