ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: <support@planetashop.ru>
To: <community@altlinux.ru>
Subject: Re: [Comm] MySQL Sorting
Date: Mon, 8 Sep 2003 12:55:16 +0400
Message-ID: <041b01c375e6$ec8171e0$3b00a8c0@admin> (raw)
In-Reply-To: <200309081232.55763.gnomik@mtv.ru>

----- Original Message -----
From: "Andrew Nazarkin" <gnomik@mtv.ru>
To: <community@altlinux.ru>
Sent: Monday, September 08, 2003 12:32 PM
Subject: Re: [Comm] MySQL Sorting


> В сообщении от 6 Сентябрь 2003 19:28 Scor2k написал:
> > Доброе время суток.
> >
> > Понимаю, что вопрос на прямую не связан с Linux, но все же...
> >
> > Почему на запрос:
> > "SELECT * FROM bd ORDER BY name"
> > Вывод оказываеться соверешенно не сортированным :( Думаю дело в том,
> > что в этом поле находяться русские имена, а БД не работает с русскими
> > именами.
> >
> > Кто-нибудь знает, как это исправить??
> >
> > Заранее благодарен.
>
> charset ?
> сортировка от него напрямую зависит.
Сталкивался с этой проблемой. Есть несколько путей без изменения чарсета,
так как к нему доступа может и не быть если мускул у провайдера.

1. Как правило база Mysql поддерживает русский в koi8, поэтому нормальная
сортировка
будет если сохранять текст на русском языке в кои8. В php есть функции
позволяющие конвертить
кои в win и обратно, или писать весь сайт в koi8
2. Если сайт и хранимая инфа в win1251, перевести поле по которому надо
сортировать в бинарное
тогда сартировка тоже будет правильо работать, потому что win1251 буквы
расположены по порядку их номеров.


>
> --
> With Best Regards
> Andrew N. Nazarkin
>
>
>
> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> http://www.altlinux.ru/mailman/listinfo/community



  reply	other threads:[~2003-09-08  8:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-06 15:28 Scor2k
2003-09-06 15:42 ` Gorbush
2003-09-06 16:22   ` Scor2k
2003-09-06 16:12 ` iceb
2003-09-06 16:24   ` Scor2k
2003-09-07 14:58     ` iceb
2003-09-08 14:26       ` [Comm] MySQL документация Denis Smirnov
2003-09-08 18:26         ` iceb
2003-09-07  3:03 ` [Comm] MySQL Sorting Alexey Borovskoy
2003-09-07  4:33   ` Scor2k
2003-09-07  8:55     ` Sergei Dolmatov
2003-09-08  2:18     ` Re[2]: " Evgeny Yugov
2003-09-08  2:53       ` Аркадий Павлик
2003-09-08  3:13         ` Re[4]: " Evgeny Yugov
2003-09-08  3:26           ` Аркадий Павлик
2003-09-07  9:21   ` Arkadiy Pavlik
2003-09-07 11:22 ` Венедикт Слюсарев
2003-09-07 13:25   ` iceb
2003-09-08  8:32 ` Andrew Nazarkin
2003-09-08  8:55   ` support [this message]
2003-09-08  9:44     ` Re[2]: " CoulD
2003-09-08 10:30       ` support
2003-09-08  9:53 ` xDiemon

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='041b01c375e6$ec8171e0$3b00a8c0@admin' \
    --to=support@planetashop.ru \
    --cc=community@altlinux.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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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