问题
I have a database (which I cant change) that has a collate nocase field:
name string collate nocase
I need to do a search on this field that is case sensitive. Is this possible with the 'collate nocase'?
Thanks
回答1:
Just switch the collation back for that query:
SELECT * FROM MyTable WHERE name COLLATE BINARY = 'Nick'
来源:https://stackoverflow.com/questions/14947945/sqlite-case-sensitive-search-with-collate-nocase-field