Solved

two different collation on latin1 charset

Posted on 2006-07-07
2
837 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
paypal ipn to mysql 3 105
possible to record changes (trigger I think) msql 11 47
mysql qry 1 38
SQL Procedure 7 49
As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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