日期:2014-05-16  浏览次数:20382 次

oracle 10g中创建表空间和表

http://apps.hi.baidu.com/share/detail/30464791

1.--?连接

conn hu/aaa;

--?创建表空间

Create tablespace computer2005 nologging datafile 'd:\oracle\product\10.2.0\oradata\test\computer.dbf' size?50m?blocksize 8192 extent management local uniform size 256k segment space management auto;

--?创建学生基本信息表

create table student(学号?varchar2(20 byte) not null,

??????????????????????????姓名?varchar2(8 byte),

??????????????????????????性别?varchar2(4 byte),

??????????????????????????民族?varchar2(8 byte),

constraint?pk_stud primary key(学号) using index tablespace computer2005

pctfree 10 initrans 2 maxtrans 255);

--?创建课程信息表

create table course(课程编号?varchar2(5 byte) not null,

??????????????????????