This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-argus-service/sqlupdate/sqlupdate(20161108)新增表和字段.sql
zhangdongxu 13acafd43d 上传代码
2017-12-19 14:55:52 +08:00

63 lines
1.7 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Create table
create table FX_HTTP_URL
(
REGION_ID NUMBER not null,
GROUP_ID NUMBER not null,
KEYWORDS VARCHAR2(1024) not null,
EXPR_TYPE NUMBER not null,
MATCH_METHOD NUMBER not null,
IS_HEXBIN NUMBER default 0 not null,
IS_VALID NUMBER not null,
OP_TIME DATE not null,
PROC_SEQ NUMBER,
LAST_UPDATE DATE
)
tablespace GK_PZ
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
-- Add comments to the columns
comment on column FX_HTTP_URL.REGION_ID
is '主键';
comment on column FX_HTTP_URL.GROUP_ID
is '关联管控配置分组表中的group_id';
comment on column FX_HTTP_URL.KEYWORDS
is 'expr_type:1,时, keywords中,子表达式中的’&’转义。';
comment on column FX_HTTP_URL.EXPR_TYPE
is '0:无表达式,1:表示为与表达式';
comment on column FX_HTTP_URL.MATCH_METHOD
is 'expr_type:0时有意义其它情况必须置0。
0子串匹配1右匹配2左匹配3完全匹配
';
comment on column FX_HTTP_URL.IS_HEXBIN
is '默认为0:大小写不敏感且非HEX 1:HEX格式二进制2:大小写敏感且非HEX二进制格式是一种特殊的编码受table_info.conf文件中do_merge控制';
comment on column FX_HTTP_URL.IS_VALID
is '0无效1有效';
-- Create/Recreate primary, unique and foreign key constraints
alter table FX_HTTP_URL
add constraint PK_FX_HTTP_URL primary key (REGION_ID)
using index
tablespace GK_PZ
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
alter table dns_response_strategy add column MIN_TTL integer not null;
alter table dns_response_strategy add column MAX_TTL integer not null;