Re: where its not a letter

2004-07-28 Thread Paul DuBois
At 1:58 + 7/29/04, [EMAIL PROTECTED] wrote: -- Original message from Tiago Serafim : -- Hi, Try the following: WHERE not (field like '%c%' or field like'%C%') Cheers, I think since LIKE is case insensitive, unless the keyword BINARY is present, Close, but not quite.

Re: where its not a letter

2004-07-28 Thread Tiago Serafim
> I think since LIKE is case insensitive, unless the keyword BINARY is present, and > the parser would have to collapse the extraneous parentheses "WHERE NOT LIKE '%c%'" > would be slightly more efficient. > applicable manual page -- > http://dev.mysql.com/doc/mysql/en/String_comparison_function

Re: where its not a letter

2004-07-28 Thread Frederick R. Doncillo
Hello, It should select * from table where field not like '%c%'; or to be safe; select * from table where field not like 'c%' and field not like '%c' and field not like '%c%'; Fred. Tiago Serafim wrote: Hi, Try the following: WHERE not (field like '%c%' or field like'%C%') Cheers, On Wed,

Re: where its not a letter

2004-07-28 Thread jgoodie
-- Original message from Tiago Serafim : -- > Hi, > > Try the following: > > WHERE not (field like '%c%' or field like'%C%') > > Cheers, > I think since LIKE is case insensitive, unless the keyword BINARY is present, and the parser would have to collapse the ext

Re: where its not a letter

2004-07-28 Thread Tiago Serafim
Hi, Try the following: WHERE not (field like '%c%' or field like'%C%') Cheers, On Wed, 28 Jul 2004 22:23:40 +0100, John Berman <[EMAIL PROTECTED]> wrote: > Hi > > Sure this is easy > > Im trying to create a simple select query but I want to return records > unless a field contains a C or c

where its not a letter

2004-07-28 Thread John Berman
Hi Sure this is easy Im trying to create a simple select query but I want to return records unless a field contains a C or c so would it be something like where field <> 'c' or 'C' Regards John B -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscri