php - Mysql Index to Ignore Spaces and Capitalization? -


i have unique index on text field , wondering if there anyway can tell ignore case , spaces. preprocessing normalize data before inserting still count these two

"this  title of  data" "this title of data" 

as same , allow 1 of them. if there way @ index level great if not guess can try make preprocessing more strict normalize incoming data. have bunch of old data have passed through whatever normalization again or else continue duplicate entries prefer way fix @ mysql index level. suggest?

character case has become complex many languages. if need preserve typed make 2 columns typed text , normalized text... in trimmed, lcase, etc. search on normalized column, display user's column


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -