简体   繁体   English

不区分大小写的Clob字段搜索

[英]Case insensitive search on clob fields

I'm trying to perform case insensitive search on clob fields. 我正在尝试对Clob字段执行不区分大小写的搜索。 I don't want to use neither upper nor regexp_like . 我不想使用upperregexp_like Alter session is also not an option for me. 我也不能选择Alter session I have tried to put an index like this: 我试图把这样的索引:

create index
   ind_ci
on
   table
(
   nlssort( column, 'NLS_SORT=BINARY_CI')
);

It seems however to fail on clob fields. 但是,似乎在clob字段上失败。 How can I reach the goal using index? 如何使用索引达到目标?

Unfortunately, NLSSORT function does not support CLOB data directly. 不幸的是, NLSSORT函数不直接支持CLOB数据。 However, CLOBs can be passed in as arguments through implicit data conversion . 但是,可以通过隐式数据转换将CLOB作为参数传递。

You could have a look at how implicit data conversion happens . 您可以看看隐式数据转换如何发生的

Also, you could read Oracle – Case Insensitive Sorts & Compares . 另外,您可以阅读Oracle –不区分大小写的排序和比较

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM