Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 92181 invoked from network); 18 Mar 2008 15:20:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2008 15:20:31 -0000 Received: (qmail 32821 invoked by uid 500); 18 Mar 2008 15:20:26 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 32804 invoked by uid 500); 18 Mar 2008 15:20:26 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 32793 invoked by uid 99); 18 Mar 2008 15:20:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 08:20:26 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 15:19:37 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JbdbZ-0007zw-S3 for derby-user@db.apache.org; Tue, 18 Mar 2008 08:19:57 -0700 Message-ID: <16122341.post@talk.nabble.com> Date: Tue, 18 Mar 2008 08:19:57 -0700 (PDT) From: Lolas To: derby-user@db.apache.org Subject: Re: Order by clause with national character set In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: lohonya@dconstans.hu References: <000001c872ec$c5635990$6c02a8c0@dconstans> X-Virus-Checked: Checked by ClamAV on apache.org Hello Knut! Thanks for your answer, it was very hepfully. I beg your pardon for this late answer, I haven't known that I made this thread. I have registered jus= t now. LL Knut Anders Hatlen wrote: >=20 > Lohonya L=C3=A1szl=C3=B3 writes: >=20 >> Hi, >> =20 >> I want to use a SQL statement with ORDER BY clause along with VARCHAR >> elements in which there are some national character (=C3=A1,=C3=81, =C5= =B1,=C5=B0, etc). Our >> (Hungarian)alphabet is: aA, =C3=A1=C3=81, bB, cC, ...=20 >> How do I setup my Derby database to make these arrangements properly? >=20 > Hi, >=20 > It sounds like you need territory-based collation. Take a look at these > pages in Derby Developer's Guide: >=20 > http://db.apache.org/derby/docs/10.3/devguide/tdevdvlpcollation.html > http://db.apache.org/derby/docs/10.3/devguide/cdevcollation.html >=20 > Here's a small example: >=20 > ij version 10.4 > ij> connect > 'jdbc:derby:MagyarDB;create=3Dtrue;territory=3Dhu_HU;collation=3DTERRITOR= Y_BASED'; > ij> create table t (x varchar(10)); > 0 rows inserted/updated/deleted > ij> insert into t values 'aA', '=C3=A1=C3=81', 'bB', 'cC', 'a=C3=A1', '= =C3=A1a'; > 6 rows inserted/updated/deleted > ij> select * from t order by x; > X =20 > ---------- > aA =20 > a=C3=A1 =20 > =C3=A1a =20 > =C3=A1=C3=81 =20 > bB =20 > cC =20 >=20 > 6 rows selected >=20 >=20 > Hope this helps, > --=20 > Knut Anders >=20 >=20 --=20 View this message in context: http://www.nabble.com/Order-by-clause-with-na= tional-character-set-tp15565292p16122341.html Sent from the Apache Derby Users mailing list archive at Nabble.com.