我想从具有非常规撇号字符的列(姓)中获取所有记录。
即U+2019
,U+2018
,U+201B
(还有其他内容吗?)
答案 0 :(得分:1)
您可以使用常规的expresion类来过滤行,如下所示:
select * from table where regexp_like(last_name, '[‘’`´‘’‛′‵]')
或者如果您不想直接在字符串中使用unicode字符:
select * from table where regexp_like(last_name, '[' || unistr('\2018\2019\201B`\00B4\2032\2035') || ']')
在Unicode中可以找到更多的非常规单引号:https://en.wikipedia.org/wiki/General_Punctuation
请注意某些https://en.wikipedia.org/wiki/Combining_Diacritical_Marks,因为它们可以与空格组合以使其看起来像引号。