regexp_replace和regexp_substr变量的比较

时间:2018-07-10 11:46:14

标签: sql regexp-replace regexp-substr

比较变体时出现问题。

当我使用表达式regexp_replaceregexp_substr在数据库中执行查询时,我得到了预期的结果并插入到在过程中创建的变量中。

SELECT SUBSTR (regexp_substr (regexp_replace (ds_text_macro, '<. *?>'), '@ [^.] *'), Macro_files_w, macro_files_final_w - 1) ds_macro
into retorno_filha_macro_w
FROM config_imp_sumario
WHERE ie_type_summary = 'RESU'
AND upper (ds_macro_reference) LIKE '%' || upper (return_macro_w) || '%';

变量return_film_macro_w的值为“ @blood_pressure ”。 当我尝试将此变量与表中具有相同值的字段进行比较时,找不到任何内容。

正确输入非可变直接值。

为什么我不能比较这种类型的变量?

1 个答案:

答案 0 :(得分:0)

Procedure

请看看是否更清楚!

在此过程中,我只是获取一些xml标记的值。 并与res_resultado_ Patient表进行比较。

变量return_files_macro_w返回了我'@blood_pressure',而res_ Patient表的ds_macro_references字段也返回了我'@blood_pressure',但是光标没有找到任何信息。

table

相关问题