tristan Israel wrote:
> Hello,
> 
> I have a field named "rights" (varchar[9])
> 
> it contains some records like "wrxwrxwrx" or "wr-w--w-x"
> 
> I'd like to find all the records that contains this : "wr??????"
> 
> That's why I did this query : "SELECT * FROM table WHERE rights LIKE 
> 'wr??????'"
> 
> and it doesn't work !
> 
> It extension, a simple search like : "SELECT * FROM table WHERE name 
> LIKE 'I*'" doesn't return anything.
> 
> Could you help me ?
> 
> Thank you
> 
> 

Hi,

You are not using the correct widcard characters with LIKE,
you should use '_' and '%' instead of '?' and '*'.

Check the documentation for details:
http://www.mysql.com/doc/en/String_comparison_functions.html

Hope this helps
-- 
Joseph Bueno


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to