Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曹鹏
bigdatainterservice
Commits
23907db7
Commit
23907db7
authored
Sep 11, 2019
by
chentian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建系统用户IP信息表,已执行
parent
040579b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
0 deletions
+87
-0
src/main/resources/static/sql/S062.20190911_chentian_新建系统用户IP信息表.txt
+87
-0
No files found.
src/main/resources/static/sql/S062.20190911_chentian_新建系统用户IP信息表.txt
0 → 100644
View file @
23907db7
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment