asp.net提取中文
1.VS中查找--查找范围:整个程序集
[\u4e00-\u9fa5]
手动把查找结果导入到数据库
2. 建表
-- Create table
create table TABLE_DIGLOSSIA
(
address_content NVARCHAR2(1000),
file_type NVARCHAR2(50),
is_annotated NUMBER,
app_name NVARCHAR2(20),
chinese NVARCHAR2(1000),
english NVARCHAR2(1000),
is_label NUMBER,
address NVARCHAR2(1000),
content NVARCHAR2(1000),
responsible_person NVARCHAR2(20),
resourcekey NUMBER default 0,
id NVARCHAR2(50) default sys_guid(),
position NVARCHAR2(200),
memo NVARCHAR2(500),
config_name NVARCHAR2(500),
responsible_person_new NVARCHAR2(20)
)
tablespace TABLEDATA
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
-- Add comments to the columns
comment on column TABLE_DIGLOSSIA.address_content
is '地址 + 中文内容';
comment on column TABLE_DIGLOSSIA.file_type
is '文件类型';
comment on column TABLE_DIGLOSSIA.is_annotated
is '是否注释';
comment on column TABLE_DIGLOSSIA.app_name
is '应用名称';
comment on column TABLE_DIGLOSSIA.chinese
is '中文';
comment on column TABLE_DIGLOSSIA.english
is '英文';
comment on column TABLE_DIGLOSSIA.is_label
is '是否已有Label标签';
comment on column TABLE_DIGLOSSIA.address
is '地址';
comment on column TABLE_DIGLOSSIA.content
is '内容';
comment on column TABLE_DIGLOSSIA.responsible_person
is '负责人';
comment on column TABLE_DIGLOSSIA.resourcekey
is '是否已经配置双语';
comment on column TABLE_DIGLOSSIA.position
is '位置';
comment on column TABLE_DIGLOSSIA.memo
is '备注';
comment on column TABLE_DIGLOSSIA.config_name
is '对应配置名称';
comment on column TABLE_DIGLOSSIA.responsible_person_new
is '负责人';
create table TABLE_DIGLOSSIA
(
address_content NVARCHAR2(1000),
file_type NVARCHAR2(50),
is_annotated NUMBER,
app_name NVARCHAR2(20),
chinese NVARCHAR2(1000),
english NVARCHAR2(1000),
is_label NUMBER,
address NVARCHAR2(1000),
content NVARCHAR2(1000),
responsible_person NVARCHAR2(20),
resourcekey NUMBER default 0,
id NVARCHAR2(50) default sys_guid(),
position NVARCHAR2(200),
memo NVARCHAR2(500),
config_name NVARCHAR2(500),
responsible_person_new NVARCHAR2(20)
)
tablespace ATMDATA
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
-- Add comments to the columns
comment on column TABLE_DIGLOSSIA.address_content
is '地址 + 中文内容';
comment on column TABLE_DIGLOSSIA.file_type
is '文件类型';
comment on column TABLE_DIGLOSSIA.is_annotated
is '是否注释';
comment on column TABLE_DIGLOSSIA.app_name
is '应用名称';
comment on column TABLE_DIGLOSSIA.chinese
is '中文';
comment on column TABLE_DIGLOSSIA.english
is '英文';
comment on column TABLE_DIGLOSSIA.is_label
is '是否已有Label标签';
comment on column TABLE_DIGLOSSIA.address
is '地址';
comment on column TABLE_DIGLOSSIA.content
is '内容';
comment on column TABLE_DIGLOSSIA.responsible_person
is '负责人';
comment on column TABLE_DIGLOSSIA.resourcekey
is '是否已经配置双语';
comment on column TABLE_DIGLOSSIA.position
is '位置';
comment on column TABLE_DIGLOSSIA.memo
is '备注';
comment on column TABLE_DIGLOSSIA.config_name
is '对应配置名称';
comment on column TABLE_DIGLOSSIA.responsible_person_new
is '负责人';
create or replace package pk_diglossia is
/*+===========================================================================+
名 称:p_change
创建日期:2019-4-3 11:43:01
内容摘要:过滤 筛选 VS查找的中文
使用方:JOB每天调用
创建者
+===========================================================================+*/
procedure p_change;
end;
/
create or replace package body pk_diglossia is
/*+===========================================================================+
名 称:pk_diglossia
创建日期:2019-4-3 11:41:27
内容摘要:用于处理双语提供内容 过滤 筛选
创建者
+===========================================================================+*/
v_error_code hrt_error_log.code%type;
v_error_text hrt_error_log.message%type;
/*+===========================================================================+
名 称:p_change
创建日期:2019-4-3 11:43:01
内容摘要:过滤 筛选 VS查找的中文
使用方:JOB每天调用
创建者
+===========================================================================+*/
procedure p_change is
begin
--提取出VS查找的中文 地址,内容字段
update TABLE_DIGLOSSIA t
set t.address = substr(t.address_content,
0,
instr(address_content,
':',
instr(address_content, ':') + 1)),
t.content = substr(t.address_content,
instr(address_content,
':',