10-11

 

create table Student 
(
  Sno  VARCHAR2(3) not null,
  Sname   VARCHAR2(8) not null,
  Ssex   NUMBER(2)   not null,
  Sbirthday date     not null,
  SClass number(5)
  
);

comment on column Student .Sno
  is '学号(主键)';
comment on column Student .Sname 
  is '学生姓名';
comment on column Student .Ssex
  is '学生性别';
comment on column Student.Sbirthday
  is '学生出生年月';
  comment on column Student.SClass
  is '学生所在班级';
  
 alter table Student
 add constraint Student primary key (Sno)

原文地址:https://www.cnblogs.com/dandan1224/p/5947924.html