ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: Oracle Text error: DRG-50901: text query parser syntax error on line 1, column 19

前端 未结 3 1139
北荒
北荒 2021-01-28 16:33
SELECT person_no sub_sys_individual_id,
 nm_e,
 nm_a,
 nvl(sex, -1) sex,
nvl(prs_nat, -999) prs_nat,
person_no,
\'NA\' prog_where_not_allowed,
\'NA\' udb_no,
 person_tp,         


        
3条回答
  •  星月不相逢
    2021-01-28 17:24

    You must escape the BT special word (but you can just escape the entire string).

    SELECT person_no sub_sys_individual_id,
     nm_e,
     nm_a,
     nvl(sex, -1) sex,
    nvl(prs_nat, -999) prs_nat,
    person_no,
    'NA' prog_where_not_allowed,
    'NA' udb_no,
     person_tp,
     pass_no
    FROM ban_inq_tab
    WHERE contains (nm_e ,'{xxstart JUHETI BT MEMED ASMANI}%') >0
    AND (trans_flag IS NULL OR trans_flag = 'C');
    

提交回复
热议问题