Firebird Case-Insensitive Searching 大小写不敏感查找

Posted jonney-wang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Firebird Case-Insensitive Searching 大小写不敏感查找相关的知识,希望对你有一定的参考价值。

Firebird 默认是大小写敏感,在检索的时候。

要想不敏感检索,两种方法:

1、where upper(name) = upper(:flt_name)

2、检索时指定字符集collation,例如:collate unicode_ci

1 select *
2 from M_CUSTOMER
3 where code collate unicode_ci = c0001

实际存储code = C0001

 

以上是关于Firebird Case-Insensitive Searching 大小写不敏感查找的主要内容,如果未能解决你的问题,请参考以下文章