Re: Dont know how to make SQL search for the column 'varchar' and collation 'utf8_unicode_ci'. Been spending more than a week. pls help
Posted by: Matthew Bagley
Date: July 06, 2010 04:48AM

From what I understand what you want to do is this.

Search the database for the character 'A' and return all alternatives of that character á for example.

rather than converting the character into every type available and searching that way you would be better doing this

SELECT * FROM 8888n8866 WHERE codechar = 'A'

And your insert statements would be

INSERT INTO `8888n8866` (`codechar`, `CText`, `4row`, `Code`, `2row`, `8888old`, `8866`, `8888new`, `asciiValue`) VALUES
('A','A', '''', 'HFFFD', '', '''', '~#A', '#A', 'EFBCA1'),
('A','a', '''', 'HFFFD', '', '''', '~#a', '#a', 'EFBD81'),
('A','ā', '''', 'HFFFD', '', '''', '~(!', '(!', 'C481'),
('A','á', '''', 'HFFFD', '', '''', '~(', '(''', 'C3A1'),
('A','ǎ', '''', 'HFFFD', '', '''', '~(#', '(#', 'C78E'),
('A','à', '''', 'HFFFD', '', '''', '~($', '($', 'C3A0');

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Dont know how to make SQL search for the column 'varchar' and collation 'utf8_unicode_ci'. Been spending more than a week. pls help
1939
July 06, 2010 04:48AM


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.