SQLite accent-insensitive search(SQLite 不区分重音的搜索)
问题描述
有什么办法可以在 SQLite 中进行不区分重音的 LIKE 查询吗?例如,这个查询:
如果有任何不同,我将 Qt 与 QSqlDatabase 一起使用.
设置排序规则 使用 sqlite3_create_collation
然后像这样使用它:
Is there any way to do an accent-insensitive LIKE query in SQLite? For example, this query:
would return:
André the Giant Andre Agassi etc.
I'm using Qt with QSqlDatabase if it makes any difference.
Set up a collation using sqlite3_create_collation
and then use it like this:
这篇关于SQLite 不区分重音的搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!