> 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??????'"

Try to use this one:
"SELECT * FROM table WHERE rights LIKE 'wr%'" (It means everything that
begins from 'wr')

Next point:
'?' - it is not pattern in MySQL...

Check this page for more information.
http://www.mysql.com/doc/en/Pattern_matching.html

Best regards,
Mikhail.




----- Original Message -----
From: "tristan Israel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 10:48 AM
Subject: mysql search


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


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