ITeye博客

oracle基本语句

androider · 2007-11-28 09:55 · Database · Markdown

一、基本建表语句

create table GROUPINFO
(
  ID             VARCHAR2(32) not null,
  GROUP_TYPE     VARCHAR2(20),
  GROUP_NAME     VARCHAR2(255) not null,
  MAINTAIN_LEVEL NUMBER,
  CUSTOMER_NAME  VARCHAR2(20),
  CUSTOMER_TEL   VARCHAR2(20)
)
tablespace EOMS_DB
  pctfree 10
  initrans 1
  maxtrans 255
  storage
  (
    initial 128K
    minextents 1
    maxextents unlimited
  );

二、添加primary key

alter table GROUPINFO
  add primary key (ID)
  using index 
  tablespace EOMS_DB
  pctfree 10
  initrans 2
  maxtrans 255
  storage
  (
    initial 64K
    minextents 1
    maxextents unlimited
  );

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。