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
Post a Comment