AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old May 17, 2003, 12:33   #1
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: Sep 2002
Location: Vik, Medieval Norway
Posts: 1,497
Rep Power: 7
Reputation: 48
Send a message via ICQ to hov
Another MySQL question

Tak.....

xosqi

CREATE TABLE `chars` (
`field` char(1) NOT NULL default ''
) TYPE=MyISAM;


Heto lcnum em liqy ruseren tarer.
Heto

SELECT FROM chars WHERE field = 'д';
berum a erku togh 'д'-ov u 'ж'-ov

SELECT FROM chars WHERE field = 'л';
berum a erku togh 'л'-ov u 'и'-ov

SELECT FROM chars WHERE field = 'о';
berum a ereq togh 'о'-ov 'м'-ov u 'п'-ov

ba heto? senc karelia !?
hov is offline   Reply With Quote Quote selected
Old May 18, 2003, 12:48   #2
Moderator
 
Join Date: Mar 2002
Location: Ukraine
Posts: 123
Rep Power: 7
Reputation: 10
Надо поменять charset. По умолчанию там latin1, а должно быть win1251.
Про это написано в мануале - http://www.mysql.com/doc/ru/Character_sets.html

Или же делать так
SELECT * FROM chars WHERE field regexp 'д';
hayk is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:35.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link