问题描述
瀚高V9 mysql兼容模式下,进行like模糊匹配时,默认不支持忽略字符串大小写匹配,导致匹配失败,可通过设置collate值或修改字段表结构来处理。
解决方案
测试数据:
highgo=# select * from test; |
方案一:
highgo=# select * from test where name='bob' collate utf8_general_ci; |
方案二:
-- 查看表原结构 |
瀚高V9 mysql兼容模式下,进行like模糊匹配时,默认不支持忽略字符串大小写匹配,导致匹配失败,可通过设置collate值或修改字段表结构来处理。
测试数据:
highgo=# select * from test; |
方案一:
highgo=# select * from test where name='bob' collate utf8_general_ci; |
方案二:
-- 查看表原结构 |