I’m trying to find html entities (e.g. ü) within a varchar field:
set define off;
SELECT description FROM descriptions WHERE contains(description, 'ü') > 0;
SELECT description FROM descriptions WHERE contains(description, 'ü') > 0;
SELECT description FROM descriptions WHERE contains(description, '%uuml%') > 0;
set define off;
set escape on;
SELECT description FROM descriptions WHERE contains(description, '\ü') > 0;
SELECT description FROM descriptions WHERE contains(description, '\ü') > 0;
SELECT description FROM descriptions WHERE contains(description, '\ü\;') > 0;
Not a single query is working, although there are plenty of potential results.
Any ideas?
Many thanks!
Did you define an Oracle Text index on
description? If so, how did you define that index? Did you resynchronize the index after loading the data?If you use
INSTRrather thanCONTAINS, do you get results?