Commit 23907db7 by chentian

新建系统用户IP信息表,已执行

parent 040579b9
INSERT INTO XZXT.SYS_DBLOG(SID,STATUS)VALUES('S062',0);
INSERT INTO XZXT.SYS_DBLOG(SID,STATUS)VALUES('S062',0);
COMMIT;
-------------------------------------------------------------------------------------------
-- Create table
create table SYS_USER_IP
(
ID VARCHAR2(32) not null,
USERNAME VARCHAR2(18) not null,
TRUE_NAME VARCHAR2(255),
IDENTITYCARD VARCHAR2(18),
IP VARCHAR2(100),
OPEN_FLAG VARCHAR2(4) not null,
RKSJ DATE,
GXSJ DATE,
MACADDRESS VARCHAR2(255),
FILENAME VARCHAR2(100)
)
tablespace TBS_XZXT_XTZY
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 16
next 8
minextents 1
maxextents unlimited
);
-- Add comments to the table
comment on table SYS_USER_IP
is '系统用户IP信息';
-- Add comments to the columns
comment on column SYS_USER_IP.ID
is '序列号(uuid)';
comment on column SYS_USER_IP.USERNAME
is '用户账号(警号)';
comment on column SYS_USER_IP.TRUE_NAME
is '用户姓名';
comment on column SYS_USER_IP.IDENTITYCARD
is '用户身份证号';
comment on column SYS_USER_IP.IP
is 'ip地址';
comment on column SYS_USER_IP.OPEN_FLAG
is '激活标志(0是未激活、1是激活)';
comment on column SYS_USER_IP.RKSJ
is '入库时间';
comment on column SYS_USER_IP.GXSJ
is '更新时间';
comment on column SYS_USER_IP.MACADDRESS
is 'Mac地址';
comment on column SYS_USER_IP.FILENAME
is '文件名.格式';
-- Create/Recreate primary, unique and foreign key constraints
alter table SYS_USER_IP
add constraint PK_SYS_USER_IP primary key (ID)
using index
tablespace TBS_XZXT_XTZY
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
alter table SYS_USER_IP
add constraint UK_SYS_USER_IP unique (USERNAME)
using index
tablespace TBS_XZXT_XTZY
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
-------------------------------------------------------------------------------------------
UPDATE XZXT.SYS_DBLOG SET STATUS=1 WHERE SID='S062';
COMMIT;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment