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

原文地址:https://www.cnblogs.com/jonney-wang/p/9654944.html