Oracle创建表和索引

数据库 Oracle
Oracle数据库中,创建表是我们最常用的操作之一,下文对Oracle创建表和索引的语句写法作了详细的说明,供您参考学习之用。

Oracle创建表和索引的语句写法是比较基础的知识,下面就为您详细介绍Oracle创建表和索引的方法,希望对您学习Oracle创建表方面能有所帮助。

Oracle创建表

  1. create table tablename  
  2. (  
  3. f1 NUMBER(10) not null,  
  4. f2 NUMBER(10) null ,  
  5. f3 NUMBER(3) defalut 0,  
  6. pt number(3) not null ,  
  7. constraint PK_tablename primary key (f1)  
  8. using index  
  9. tablespace ts_name  
  10. storage  
  11. (  
  12. initial 1m  
  13. next 1m  
  14. pctincrease 0  
  15. )  
  16. )  
  17. pctfree 10  
  18. tablespace ts_name  
  19. storage  
  20. (  
  21. initial 1m  
  22. next 1m  
  23. pctincrease 0  
  24. )  
  25. partition by range(pt)  
  26. (partition part000 values less than (1) tablespace ts_name,  
  27. partition part001 values less than (2) tablespace ts_name,  
  28. )  

创建索引

  1. create index i_tablename1 on tablename(f2)  
  2. tablespace ts_name  
  3. storage  
  4. (  
  5. initial 500k  
  6. next 500k  
  7. pctincrease 0  

 

 

 

 

【编辑推荐】

教您如何实现Oracle重建索引

Oracle COMMIT语句的处理顺序介绍

全面解析Oracle文件系统

当前Oracle系统时间的查询方法

ORACLE系统表和数据字典视图

责任编辑:段燃 来源: 互联网
相关推荐

2011-08-23 10:37:15

Oracle分区表本地索引

2010-04-12 16:50:47

Oracle索引聚簇表

2010-10-26 16:33:54

创建Oracle索引

2009-11-19 15:32:50

Oracle索引

2011-04-13 13:56:52

Oracle临时表

2010-10-26 17:17:37

创建ORACLE索引

2009-11-06 14:25:20

Oracle创建用户表

2010-11-16 10:32:01

Oracle创建表空间

2010-04-15 14:18:30

Oracle创建

2010-11-16 10:15:24

oracle创建表空间

2010-04-15 14:39:56

Oracle创建表空间

2010-04-23 17:20:34

Oracle创建

2011-08-22 17:41:25

SQL ServerOracleDB2

2011-08-02 17:53:23

Oracle对象类型对象类型表

2011-04-08 15:12:22

Oracle索引

2010-10-26 17:28:15

创建Oracle索引

2010-11-11 09:20:46

SQL Server创

2010-03-29 11:31:45

2010-04-28 11:56:09

Oracle临时表

2010-10-26 16:43:58

查看Oracle索引
点赞
收藏

51CTO技术栈公众号