PLSQL同时执行多条语句实例(二)

2014-11-24 11:32:44 · 作者: · 浏览: 3
the columns
comment on column TBSLSWDATAIMPORTLOG.logguid
is 'GUID';
comment on column TBSLSWDATAIMPORTLOG.themetypeguid
is '要入库的水利水务专题数据类型编号,字段值来源水利水务专题数据字典表中的专题类型编号字段';
comment on column TBSLSWDATAIMPORTLOG.processstate
is '0:上传失败
1:上传成功
2:审核通过
3:审核未通过
4:检查失败
5:检查成功
6:入临时库失败
7:入临时库成功
8:入现势库失败
9:入现势库成功
';
comment on column TBSLSWDATAIMPORTLOG.logcontent
is '处理日志描述,XML格式,包括“编号、时间、事件、处理人、处理情况、结果”等数据项';
comment on column TBSLSWDATAIMPORTLOG.submitdepartment
is '数据提交单位名称,对于公共服务平台上传的,可以是上传单位名称;';
comment on column TBSLSWDATAIMPORTLOG.submittime
is '格式:yyyy-mm-dd hh:mm';
comment on column TBSLSWDATAIMPORTLOG.sourcefilename
is '只记录文件名,不必带路径';
comment on column TBSLSWDATAIMPORTLOG.sourcedataformat
is '0:Shapefile
1:AutoCad
2:Personal Geodatabase
3:File Geodatabase
4:Mdb中间库
';
comment on column TBSLSWDATAIMPORTLOG.reccount
is '源数据记录数';
comment on column TBSLSWDATAIMPORTLOG.datarange
is '数据范围顶点坐标,格式:(顶点1X坐标,顶点1Y坐标),(顶点2X坐标,顶点2Y坐标),(顶点3X坐标,顶点3Y坐标)';
comment on column TBSLSWDATAIMPORTLOG.tempdsname
is '临时库SDE DataSet名称';
comment on column TBSLSWDATAIMPORTLOG.tempfcname
is '临时库SDE Featureclass名称';
comment on column TBSLSWDATAIMPORTLOG.intemplibtime
is '格式:yyyy-mm-dd hh:mm,记录最后一次数据处理时间';
comment on column TBSLSWDATAIMPORTLOG.currdsname
is '现势库SDE DataSet名称';
comment on column TBSLSWDATAIMPORTLOG.currfcname
is '现势库SDE Featureclass名称';
comment on column TBSLSWDATAIMPORTLOG.intemplibmodel
is '入库方式:
0:更新方式入库
1:增量方式入库
';
comment on column TBSLSWDATAIMPORTLOG.incurrlibmodel
is '入库方式:
0:更新方式入库
1:增量方式入库
';
comment on column TBSLSWDATAIMPORTLOG.incurrlibtime
is '格式:yyyy-mm-dd hh:mm,记录最后一次数据处理时间';
-- Create/Recreate primary, unique and foreign key constraints
alter table TBSLSWDATAIMPORTLOG
add constraint PK_LOGGUID primary key (LOGGUID)
using index
tablespace SZSLSYS
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
alter table TBSLSWDATAIMPORTLOG
add constraint FK_LOGGUID_THEMETYPEGUID foreign key (THEMETYPEGUID)
references TBSLSWDICTTHEMETYPE (THEMETYPEGUID);
--创建表TBSLSWDATAEXPORTLOG
create table TBSLSWDATAEXPORTLOG
(
exportguid VARCHAR2(50) not null,
themetypeguid NVARCHAR2(50),
datarange VARCHAR2(50) not null,
targetformat NUMBER(4) not null,
datafileurl NVARCHAR2(200) not null,
applyuserid NVARCHAR2(50) not null,
applyunit NVARCHAR2(100) not null,
applytime DATE,
proccessstate NUMBER(4) not null,
logcontent NVARCHAR2(2000) not null,
audituserid VARCHAR2(50),
audittime DATE,
remark NVARCHAR2(1000)
)
tablespace SZSLSYS
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64
next 1
minextents 1
maxextents unlimited
)
nologging;
-- Add comments to the columns
comment on column TBSLSWDATAEXPORTLOG.exportguid
is 'GUID';
comment on column TBSLSWDATAEXPORTLOG.themetypeguid
is '多个专题类型,可以用逗号分隔';
comment on column TBSLSWDATAEXPORTLOG.datarange
is '逗号分隔的数据范围多边形顶点坐标,格式:(顶点1X坐标