special characters

This is a discussion on special characters within the MySQL Database forums, part of the Database Forums category; When I run the following query: SELECT * FROM words w where SUBSTRING(w.tword,1, 1) = 'é'; I get all w....


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-07-2007
Mandragon03@gmail.com
 
Posts: n/a
Default special characters

When I run the following query:

SELECT * FROM words w where SUBSTRING(w.tword,1, 1) = 'é';

I get all w.tword that start with 'e', 'é', 'E', and 'É'

Any advice on how to limit it to exactly the words that start with
'é'?

Thanks for your time!

Mandragon

Reply With Quote
  #2 (permalink)  
Old 06-08-2007
Captain Paralytic
 
Posts: n/a
Default Re: special characters

On 7 Jun, 19:05, Mandrago...@gmail.com wrote:
> When I run the following query:
>
> SELECT * FROM words w where SUBSTRING(w.tword,1, 1) = 'é';
>
> I get all w.tword that start with 'e', 'é', 'E', and 'É'
>
> Any advice on how to limit it to exactly the words that start with
> 'é'?
>
> Thanks for your time!
>
> Mandragon


You need to use the BINARY operator:

http://dev.mysql.com/doc/refman/5.0/...binary-op.html

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT +1. The time now is 04:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0