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

 

posted on 2018-09-16 07:55  jonney_wang  阅读(342)  评论(1编辑  收藏  举报

导航