-
Unicode problems
Hello all expert,
I would like to ask something about unicode datatype.
May be I should start from what I am doing now for the non-unicode data.
Now I have a table:
test
====
id int
keyword char(100)
In my existing SQL statement, one of them is used to search the records
which the keywords contains a input value, say "C++".
i.e. select * from test where upper(keyword) like upper('%sql%'
therefor all those records with keyword contains no matter "sql" or "SQL"
or "Sql" will be selected.
However if I want to apply chinese language in our database, I found that
this SQL statement will be no longer correct, because there exists some
chinese characters that the uppercase of them will becomes another word.
e.g. Â*»´ä, the upper case will becomes Â*»´Ä. This will search more unwanted
records as well.
so is there any workaround to due with this such that I can still maintain
the english matching feature?
Thanks in advance.
-
Unicode problems (reply)
On 1/25/99 6:30:20 AM, Leon Kwan wrote:
Hello all expert,
I would like to ask something about unicode datatype.
May be I should start from what I am doing now for the non-unicode data.
Now I have a table:
test
====
id int
keyword char(100)
In my existing SQL statement, one of them is used to search the records
which the keywords contains a input value, say "sql". <== should be "sql"
i.e. select * from test where upper(keyword) like upper('%sql%'
therefor all those records with keyword contains no matter "sql" or "SQL"
or "Sql" will be selected.
However if I want to apply chinese language in our database, I found that
this SQL statement will be no longer correct, because there exists some
chinese characters that the uppercase of them will becomes another word.
e.g. Â*»´ä, the upper case will becomes Â*»´Ä. This will search more unwanted
records as well.
so is there any workaround to due with this such that I can still maintain
the english matching feature?
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|