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

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

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

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

 select *
from M_CUSTOMER
where code collate unicode_ci = 'c0001'

实际存储code = C0001

05-18 20:36