Oracle:添加或删除表语句

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle:添加或删除表语句相关的知识,希望对你有一定的参考价值。

-- Create table
create table PriOffer_Fund
(
  fundno           varchar2(40) not null,
  fundname         varchar2(200) not null,
  fundshortname    varchar2(100) not null,
  fundbelong       varchar2(40) not null,
  fundregist       varchar2(200) not null,
  builddate        varchar2(10),
  fundtypeo        varchar2(40),
  fundtypet        varchar2(40),
  mainlyinvest     varchar2(40),
  duration         number(18,2),
  fundoverallscope number(18,2),
  cindasum         number(18,2),
  cindaothersum    number(18,2),
  thirdpartysum    number(18,2),
  isoffbalance     varchar2(10),
  inputuser        varchar2(10),
  inputorg         varchar2(10),
  inputdate        varchar2(10),
  inputtime        varchar2(10),
  updateuser       varchar2(10),
  updateorg        varchar2(10),
  updatedate       varchar2(10),
  updatetime       varchar2(20)
)
;
-- Add comments to the columns 
comment on column PriOffer_Fund.fundno
  is ‘基金编号‘;
comment on column PriOffer_Fund.fundname
  is ‘基金名称‘;
comment on column PriOffer_Fund.fundshortname
  is ‘基金简称‘;
comment on column PriOffer_Fund.fundbelong
  is ‘基金归属‘;
comment on column PriOffer_Fund.fundregist
  is ‘基金注册地‘;
comment on column PriOffer_Fund.builddate
  is ‘设立日期‘;
comment on column PriOffer_Fund.fundtypeo
  is ‘基金类型1‘;
comment on column PriOffer_Fund.fundtypet
  is ‘基金类型2
‘;
comment on column PriOffer_Fund.mainlyinvest
  is ‘主要投向‘;
comment on column PriOffer_Fund.duration
  is ‘存续期限‘;
comment on column PriOffer_Fund.fundoverallscope
  is ‘基金设立总规模‘;
comment on column PriOffer_Fund.cindasum
  is ‘信达资产承诺出资‘;
comment on column PriOffer_Fund.cindaothersum
  is ‘集团内其他公司承诺出资‘;
comment on column PriOffer_Fund.thirdpartysum
  is ‘第三方承诺出资‘;
comment on column PriOffer_Fund.isoffbalance
  is ‘是否包含表外项目‘;
comment on column PriOffer_Fund.inputuser
  is ‘登记人‘;
comment on column PriOffer_Fund.inputorg
  is ‘登记机构
‘;
comment on column PriOffer_Fund.inputdate
  is ‘登记日期‘;
comment on column PriOffer_Fund.inputtime
  is ‘登记时间‘;
comment on column PriOffer_Fund.updateuser
  is ‘更新人‘;
comment on column PriOffer_Fund.updateorg
  is ‘更新机构‘;
comment on column PriOffer_Fund.updatedate
  is ‘更新日期‘;
comment on column PriOffer_Fund.updatetime
  is ‘更新时间‘;
-- Create/Recreate primary, unique and foreign key constraints 
alter table PriOffer_Fund
  add constraint PriOffer_Fund primary key (FUNDNO);
  
--2.drop  table 用户.表明 ; 举例 :drop table scott.tableA;


















































































以上是关于Oracle:添加或删除表语句的主要内容,如果未能解决你的问题,请参考以下文章

Oracle创建表删除表修改表(添加字段修改字段删除字段)语句总结

Oracle创建表删除表修改表(添加字段修改字段删除字段)语句总结

ORACLE SQL语句查询一个字段在另一表字段中有两条或以上 的数据

ORACLE SQL语句查询一个字段在另一表字段中有两条或以上 的数据

oracle删除某个表的索引的sql语句

我刚增加了15G的表空间,oracle,已经创建成功,请问我如何才能删除这个刚建的表空间?