Oracle-教师信息表(Teacher)

教师信息表(Teacher)

 1 -- Create table
 2 create table TEACHER
 3 (
 4   tno       VARCHAR2(3) not null,
 5   tname     VARCHAR2(4) not null,
 6   tsex      VARCHAR2(2) not null,
 7   tbirthday DATE,
 8   prof      VARCHAR2(6),
 9   depart    VARCHAR2(10) not null
10 )
11 tablespace TEST
12   pctfree 10
13   initrans 1
14   maxtrans 255
15   storage
16   (
17     initial 64K
18     next 1M
19     minextents 1
20     maxextents unlimited
21   );
22 -- Add comments to the table 
23 comment on table TEACHER
24   is '教师表';
25 -- Add comments to the columns 
26 comment on column TEACHER.tno
27   is '教工编号(主键)';
28 comment on column TEACHER.tname
29   is '教工姓名';
30 comment on column TEACHER.tsex
31   is '教工性别';
32 comment on column TEACHER.tbirthday
33   is '教工出生年月';
34 comment on column TEACHER.prof
35   is '职称';
36 comment on column TEACHER.depart
37   is '教工所在部门';

结果:

转载于:https://www.cnblogs.com/miss123/p/5567417.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值