Solved

two different collation on latin1 charset

Posted on 2006-07-07
2
844 Views
Last Modified: 2010-08-05
I have a db using charset latin1.

I stored datas full with German chars and Turkish(latin5). I want to sort as the below. Is there any way to use two colaltion table with two different charset...

a
ä
b
c
ç
d
e
.
.
.
.
ı
i
0
Comment
Question by:tolgaong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
psadac earned 500 total points
ID: 17062447
you can define the charset and collation in your query :

SELECT
  CONVERT(mycol USING latin5) COLLATE latin5_turkish_ci AS mycol_turkish
FROM
  mytable
ORDER BY
  mycol_turkish
0
 
LVL 9

Author Comment

by:tolgaong
ID: 17063915
psadac thanks but it doesnt work.
It gave me the result as

?anl?urfa
for Şanlıurfa and its not in the exact place.

I found a solution with a tricky way. with replacing the chars but i need to know how can we sort by only order by command ?

0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question