首页 > 数据库技术 > 详细

oracle 建表 练习2

时间:2016-06-10 20:18:20      阅读:216      评论:0      收藏:0      [点我收藏+]
-- Create table
create table COURSE
(
  cno   VARCHAR2(5) not null,
  cname VARCHAR2(20) not null,
  tno   NUMBER not null
)
tablespace USERS
  pctfree 10
  initrans 1
  maxtrans 255
  storage
  (
    initial 64K
    next 1M
    minextents 1
    maxextents unlimited
  );
-- Add comments to the table 
comment on table COURSE
  is 课程表;
-- Add comments to the columns 
comment on column COURSE.cno
  is 课程号(主键);
comment on column COURSE.cname
  is 课程名称;
comment on column COURSE.tno
  is 教工编号(外键);

技术分享

oracle 建表 练习2

原文:http://www.cnblogs.com/zhailiming/p/5574104.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!