LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-03-2004, 10:18 AM   #1
onnyloh
Member
 
Registered: Nov 2002
Posts: 57

Rep: Reputation: 15
mysql query for multibyte string


i'm doing program in C

I'm querying a multibyte string. The result was unsuccessful.

SELECT `key` FROM `table` WHERE `words`='mb' ORDER BY words DESC LIMIT 1

mb is a multibyte string.

I've try to escape all the character, but the result is the same.
thank in advanced.
 
Old 12-03-2004, 10:27 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What type of field is words? Also, what charset is the string. You can try to type the SELECT manually from mysql console to see if it works that way.
 
Old 12-03-2004, 11:50 AM   #3
onnyloh
Member
 
Registered: Nov 2002
Posts: 57

Original Poster
Rep: Reputation: 15
u remind me.
thank. i will try.
all are in text field.
i
 
Old 12-03-2004, 08:29 PM   #4
onnyloh
Member
 
Registered: Nov 2002
Posts: 57

Original Poster
Rep: Reputation: 15
this solve.

when dealing with mutl-byte character,
use blob field may be very helpful
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cleanest and foolproof way to append query string to URLs (PHP) vharishankar Programming 4 07-11-2005 10:38 AM
Perl/regexp help... - query string parsing... lowpro2k3 Programming 4 05-11-2005 05:18 PM
MySQL and PHP: Multibyte Character Support Magsol Programming 4 04-26-2005 10:24 PM
Send query string via MIRC script cadj Programming 0 08-25-2004 06:25 AM
PHP random additions to query string Riley Programming 2 07-09-2003 02:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration