Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tibd内容查询区分大小写,怎么设置为不区分大小写?
- Table structure:
- Data
- Query based on conditions
Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tibd内容查询区分大小写,怎么设置为不区分大小写?
Check if new_collations_enabled_on_first_bootstrap
is set to true.
Sorted set, change it, utf8mb4_bin is case-sensitive, those ending with ci are case-insensitive, and those ending with cs are case-sensitive.
It may be necessary to rebuild the cluster… Refer to the answers from the friends above.
new_collations_enabled_on_first_bootstrap=true
). Modify the default collation.lower(column)
or upper(column)
function to the field in the query.You can execute the collation modification:
ALTER TABLE dbawork.test MODIFY name VARCHAR(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
You can take a look at this, hope it helps:
@Running It is recommended to refer to this document. In the current state, it should not be possible to distinguish between uppercase and lowercase. You can only rebuild the cluster and then import the data.