我正在将glob运算符与“?”一起使用问题是-区分大小写。

因此,假设我要搜索“ Hola”,则下面的查询不起作用。

select * from tableName where columnName glob 'ho?a';


我可以将LOWER或UPPER关键字与columnName一起使用,但是对于包含小写和大写字母的文本,它也将失败。

请输入您的意见。

最佳答案

GLOB根据设计区分大小写。

如果要不区分大小写的匹配,请使用LIKE,而_匹配单个字符:

select * from tableName where columnName like 'ho_a';

10-08 09:01
查看更多