Re: how to make LOCATE & other functions case-insensitive?

2001-11-15 Thread Michael Widenius
Bennet> MySQL documentation says that CHAR and VARCHAR types are case-insensitive: Bennet> http://www.mysql.com/doc/C/H/CHAR.html Bennet> But I have a table with a column of type VARCHAR(255), and if I do a query Bennet> like Bennet> select * from user where LOCATE('Bennett', emailadd

Re: how to make LOCATE & other functions case-insensitive?

2001-11-14 Thread jim barchuk
Hi Bennett! On Wed, 14 Nov 2001, Bennett wrote: > I did try > select * from user where 'Bennett' LIKE emailaddress; > > but it returned 0 results; in fact, so did > select * from user where 'bennett' LIKE emailaddress; I didn't think that through too well, did I. :) See the Doc for 'Pattern Mat

how to make LOCATE & other functions case-insensitive?

2001-11-13 Thread Bennett Haselton
MySQL documentation says that CHAR and VARCHAR types are case-insensitive: http://www.mysql.com/doc/C/H/CHAR.html But I have a table with a column of type VARCHAR(255), and if I do a query like select * from user where LOCATE('Bennett', emailaddress) > 0; then the results are computed