|
it01 发表于 2012-9-10 10:17 ![]()
列区大小 的概念?
创建列表的SQL里面 没看到表空间的做法
create tablespace tbsp_s_suppkey datafile 'tbsp_s_suppkey.dbf' size 200;
create tablespace tbsp_s_name datafile 'tbsp_s_name.dbf' size 200;
create tablespace tbsp_s_address datafile 'tbsp_s_address.dbf' size 200;
create tablespace tbsp_s_nationkey datafile 'tbsp_s_nationkey.dbf' size 200;
create tablespace tbsp_s_phone datafile 'tbsp_s_phone.dbf' size 200;
create tablespace tbsp_s_acctbal datafile 'tbsp_s_acctbal.dbf' size 200;
create tablespace tbsp_s_comment datafile 'tbsp_s_comment.dbf' size 200;
create VERTICAL table SUPPLIER
(
S_SUPPKEY int storage(on tbsp_s_suppkey, section(1)),
S_NAME char(25) storage(on tbsp_s_name, section(1)),
S_ADDRESS varchar(40) storage(on tbsp_s_address, section(10), stat none),
S_NATIONKEY int storage(on tbsp_s_nationkey, section(10) ,stat none),
S_PHONE char(15) storage(on tbsp_s_phone, section(10), stat none),
S_ACCTBAL float storage(on tbsp_s_acctbal, section(10), stat none),
S_COMMENT varchar(101) storage(on tbsp_s_comment, section(10) ,stat none),
primary key(s_suppkey)
);
像这样建表,数据量比较小的话就不用这么麻烦了,呵呵 |
|