当前位置:网站首页>oracle建表语句模板
oracle建表语句模板
2022-07-19 16:39:00 【扬州的你】
-- Create table
create table BOI_INST_ORDER
(
code string,
inst_code string,
fund_code string,
strategy_code string,
cash_account_code string,
trade_type string,
advisor_code string,
advisor_name string,
symbol string,
secu_code string,
secu_name string,
status string,
amt decimal(15,2),
vol decimal(15,2),
investment_date decimal(13),
remark string,
create_user string,
update_user string,
create_time string,
update_time string,
exec_code string
)
tablespace TBS_COI
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
-- Add comments to the table
comment on table BOI_INST_ORDER
is '委托表';
-- Add comments to the columns
comment on column BOI_INST_ORDER.code
is '委托编码';
comment on column BOI_INST_ORDER.inst_code
is '指令编码';
comment on column BOI_INST_ORDER.fund_code
is '产品编码';
comment on column BOI_INST_ORDER.strategy_code
is '策略代码';
comment on column BOI_INST_ORDER.cash_account_code
is '账户代码';
comment on column BOI_INST_ORDER.trade_type
is '交易方向';
comment on column BOI_INST_ORDER.advisor_code
is '资产受托人代码';
comment on column BOI_INST_ORDER.advisor_name
is '资产受托人名称';
comment on column BOI_INST_ORDER.symbol
is 'SYMBOL';
comment on column BOI_INST_ORDER.secu_code
is '投资资产编码';
comment on column BOI_INST_ORDER.secu_name
is '投资资产名称';
comment on column BOI_INST_ORDER.status
is '委托状态';
comment on column BOI_INST_ORDER.amt
is '委托金额';
comment on column BOI_INST_ORDER.vol
is '委托份额';
comment on column BOI_INST_ORDER.investment_date
is '投资执行日';
comment on column BOI_INST_ORDER.remark
is '备注';
comment on column BOI_INST_ORDER.create_user
is '创建用户';
comment on column BOI_INST_ORDER.update_user
is '修改人';
comment on column BOI_INST_ORDER.create_time
is '创建时间';
comment on column BOI_INST_ORDER.update_time
is '修改时间';
comment on column BOI_INST_ORDER.exec_code
is '成交编码';
-- Create/Recreate primary, unique and foreign key constraints
alter table BOI_INST_ORDER
add primary key (CODE)
using index
tablespace TBS_COI
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
边栏推荐
- Is there a requirement for the number of rows in ODPs SQL in dataworks? Will an error be reported if it is too long
- 项目经验总结——送给测试岗做项目的朋友们
- Thinkphp6百万级xlsx表格导入数据库的实现方案
- How to choose an open source automated testing framework? You must know these 9 open source tools
- 快速提取PDF文件中的表格
- If the total is based on the frame form by field, sort by a field
- 如何选择开源的自动化测试框架?这9款开源工具你一定要知道
- Draw scatter density diagram with MATLAB
- JVM 上数据处理语言的竞争:Kotlin, Scala 和 SPL
- 第十章:线程
猜你喜欢
[software testing] test outline method - Test Case Writing
MATLAB realizes LMDI decomposition method (including zero value processing)
Drawing circular scale map with MATLAB
【软件测试】怎样的简历能让HR一眼就看上
文件操作-
go语言环境搭建和样例
批量下载数据——以TRMM数据为例
Batch download data -- Take TRMM data as an example
error: redefinition of
mysql迁移金仓数据库主键、索引丢失问题解决方案
随机推荐
asp函数split()对应php函数explode() 字符串变数组
文件操作-
【软件测试】测试大纲法——测试用例编写
用户名枚举漏洞怎么解决
多线程FTP项目(4)—— Mysql数据库 + FTP
R language "error in NLS cycles more than 50" solution
第八章IO
Fix the error reported by the redis connection of the celery configuration under windows (typeerror: _initu () got an unexpected keyword argument)
If the total is based on the frame form by field, sort by a field
19年大专毕业——认清生活的真相后,我选择了软件测试
为 KubeSphere 集群启用免费的泛域名 SSL 证书并实现证书自动更新和分发
error: redefinition of
MATLAB快速将影像的二维坐标转换为经纬度坐标
【软件测试】一两个月带出来的新测试人员,到底有多厉害?
Matlab填充影像中的无效值
101 questions in software testing interview (with answers)
Tiree Tree
Software testing and application final review
Go基础笔记_5_流程语句
Huayun data won the outstanding contribution enterprise of sustainable technological innovation