Re: Case insensitive search in utf8 db
Posted by: Peter Brawley
Date: December 01, 2019 02:00PM

> The db is already created.

All new dbs have errors. When found, they need to be corrected.

(For a basic intro on database design see https://www.artfulsoftware.com/dbdesignbasics.html.)

> The table has a column with names
> (first and last nane in the same column,
> sometimes first name leads, sometimes follows
> last name. wrong or right?

Wrong, breaks atomicity---an elementary normalisation error.

> They asked me to find a way to do search in these columns.

If they don't know normalisation, they've no business designing databases.

> You mentioned to create a table with the triples.

It's a just a wee test/demonstration table for values that are case-insensitively equal but case-sensitively unequal. Its only purpose is to find whether your problem is specific to the db or table you referenced, or in in your server

> I can't make it. I do not have the data to create it.

Eh? Creating it needs no data. Populating it needs just the wee script I posted.

> They only said they succeeded without table like yours.

Meaningless---it's just just a temporary diagnostic device. It's not designed to accept your data.

Again, let's see the result of running my script on your server. Use the mysql client program.



Edited 1 time(s). Last edit at 12/01/2019 02:35PM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
2940
November 29, 2019 01:14PM
1249
November 29, 2019 04:31PM
1202
November 30, 2019 02:04AM
1049
November 30, 2019 10:37AM
1106
November 30, 2019 03:46PM
1131
November 30, 2019 05:32PM
1090
December 01, 2019 02:13AM
Re: Case insensitive search in utf8 db
982
December 01, 2019 02:00PM
1066
December 01, 2019 03:08PM
1111
December 02, 2019 11:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.