我在sas中写了一个传递查询。 如何使此搜索案例对搜索比较文本不敏感? 提前谢谢。
PROC SQL INOBS =1000; CONNECT TO ORACLE as con1
(DBMAX_TEXT=... PATH=...="dba" pw="mypassword");
CREATE TABLE PHRASES AS
SELECT *
FROM CONNECTION TO con1 (
SELECT
"T1"."DOC_ID",
"T1"."NRTV_TXT" ,
REGEXP_INSTR(NRTV_TXT,'LOOKING FOR TERMS|USED FORMS')"POSITION",
REGEXP_SUBSTR(NRTV_TXT,'LOOKING FOR TERMS|USED FORMS' ) "PATTERN"
FROM "NRTV" "T1"
);
DISCONNECT FROM con1;
QUIT;
答案 0 :(得分:2)
在查找模式之前,您可以使用UPPER()
将值转换为大写:
REGEXP_INSTR(UPPER(NRTV_TXT), 'LOOKING FOR TERMS|USED FORMS') "POSITION",
REGEXP_SUBSTR(UPPER(NRTV_TXT0, 'LOOKING FOR TERMS|USED FORMS' ) "PATTERN"