From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 15 Oct 2003 12:06:37 +0400 From: "Peter V. Saveliev" To: Evgeny Yugov , sisyphus@altlinux.ru Subject: Re: [sisyphus] mysql sorting order problem Message-Id: <20031015120637.7c7b2e32.peet@eltel.net> In-Reply-To: <7814580225.20031015135810@scs-900.ru> References: <20031015104248.5252ff25.peet@eltel.net> <7814580225.20031015135810@scs-900.ru> Organization: JSC Eltel X-Mailer: Sylpheed version 0.9.2 (GTK+ 1.2.10; i586-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Cc: X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.2 Precedence: list Reply-To: sisyphus@altlinux.ru List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 08:06:44 -0000 Archived-At: List-Archive: On Wed, 15 Oct 2003 13:58:10 +0700 Evgeny Yugov wrote: > Стрянная байда... для чистоты експеримента, можете записывать данные в > базу маленькими буквами? И показать то что получилось... [peet@mysql peet]$ cat test.sql insert into peet.test values (1,"азбука"); insert into peet.test values (2,"арбуз"); insert into peet.test values (3,"балалай"); insert into peet.test values (4,"колобок"); [peet@mysql peet]$ cat test.sql | mysql -p Enter password: [peet@mysql peet]$ echo "select * from peet.test order by text" | mysql -p Enter password: id text 3 балалай 2 арбуз 1 азбука 4 колобок [peet@mysql peet]$ echo "delete from peet.test" | mysql -p Enter password: [peet@mysql peet]$ cat test.sql | iconv -f KOI8-R -t CP1251 >test-win.sql [peet@mysql peet]$ cat test-win.sql | mysql -p Enter password: [peet@mysql peet]$ echo "select * from peet.test order by text" | mysql -p Enter password: id text 3 АЮКЮКЮИ 1 ЮГАСЙЮ 2 ЮПАСГ 4 ЙНКНАНЙ [peet@mysql peet]$ echo "select * from peet.test order by text" | mysql -p | iconv -f CP1251 -t KOI8-R Enter password: id text 3 балалай 1 азбука 2 арбуз 4 колобок И там, и там - не то :) Но по-разному. -- 11:58:16 up 33 days, 23:14, 4 users, load average: 0.39, 0.51, 0.53 ++ Sincerely, Peter V. Saveliev E-mail: peet@eltel.net Jabber: peet@jabber.ru