Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-07-2007, 06:05 PM
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-08-2007, 08:38 AM
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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 01:46 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.