U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » [SQLITE] Search accents insensitive (How to select records without sensivity to the case and accents ?)
Re: [SQLITE] Search accents insensitive [message #48267 is a reply to message #48198] Tue, 13 June 2017 12:32 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1796
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Instead of additional column, you can use a user defined function:
search * from some_table where normalize(name) like '%jeremy%';

You'd of course need to call the same normalization function on the input as well.

This would give you a workaround around the problems with LIKE, without adding more data to your database (for the price of some CPU cycles Smile ). But you'll still need to write the code to strip the accents. I think that Mireks work on unicode decomposition might help with that a lot.

Best regards,
Honza

[Updated on: Tue, 13 June 2017 12:33]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Please Help Me
Next Topic: How SQL deal with multiple threads?
Goto Forum:
  


Current Time: Sun Apr 26 01:26:28 GMT+2 2026

Total time taken to generate the page: 0.00482 seconds