ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Peter V. Saveliev" <peet@eltel.net>
To: Evgeny Yugov <yugov@scs-900.ru>, sisyphus@altlinux.ru
Subject: Re: [sisyphus] mysql sorting order problem
Date: Wed, 15 Oct 2003 12:06:37 +0400
Message-ID: <20031015120637.7c7b2e32.peet@eltel.net> (raw)
In-Reply-To: <7814580225.20031015135810@scs-900.ru>

On Wed, 15 Oct 2003 13:58:10 +0700
Evgeny Yugov <yugov@scs-900.ru> wrote:

<skip /> 
> Стрянная байда... для чистоты експеримента, можете записывать данные в
> базу маленькими буквами? И показать то что получилось...
<skip />

[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



  reply	other threads:[~2003-10-15  8:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-15  6:42 Peter V. Saveliev
2003-10-15  6:58 ` Evgeny Yugov
2003-10-15  8:06   ` Peter V. Saveliev [this message]
2003-10-15  8:14     ` Re[2]: " Evgeny Yugov
2003-10-15  8:29       ` Peter V. Saveliev
2003-10-15  8:43         ` Re[2]: " Evgeny Yugov
2003-10-15  8:51           ` Peter V. Saveliev
2003-10-15  9:06             ` Re[2]: " Evgeny Yugov
2003-10-15 17:10             ` Serge Pavlovsky
2003-10-16 22:55             ` Peter V. Saveliev
2003-10-17  1:05               ` Peter V. Saveliev
2003-10-17  1:34                 ` Peter V. Saveliev
2003-10-15 17:02         ` Serge Pavlovsky
2003-10-16 11:04         ` Sanja Byelkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031015120637.7c7b2e32.peet@eltel.net \
    --to=peet@eltel.net \
    --cc=sisyphus@altlinux.ru \
    --cc=yugov@scs-900.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git