constraint

1、添加主键约束

SQL> desc kaoqin;
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 ID                                                 NUMBER(38)
 NAME                                               VARCHAR2(10)
 UPTIME                                             DATE
 DOWNTIME                                           DATE

SQL> select * from kaoqin ;

no rows selected

SQL> alter table kaoqin add primary key (id);

Table altered.
View Code

 

 

posted @ 2013-07-29 10:39  ArcerZhang  阅读(238)  评论(0编辑  收藏  举报