Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Use contains with case insensitive and diacritic (Orracle 11g)

751500Feb 25 2011 — edited Mar 1 2011
Hello to all.

I have a XMLTYPE colum and I'd like to make text search with case insensitive

select d.* from document d WHERE d.XML.existsNode('//field[contains(@value,"preview") and @searchable="true"= 1

I'd like to all case insensitive 'preview'.

In a varchar filed it is possible to set the diacritic/case insensitive search

ALTER SESSION SET NLS_COMP=LINGUISTIC;
ALTER session set nls_sort='binary_ai'; -->accent insensitive
binary_ci -->case insensitive.

but i don't works on XQuery search... any idea?

Cristian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 29 2011
Added on Feb 25 2011
2 comments
1,155 views