你可以把值都转换成小写,然后再做比较。select tname from tab where lower(tname) = 'test';lower是sql的函数,当然,你也可以把它们都变成大写的。