MySQL Forums
Forum List  »  Newbie

Re: how to search in text ?(怎么避免在TEXT字段中大小写的混合查找?)
Posted by: Ramalingam Chelliah
Date: August 23, 2004 04:18AM

Hi,
By default pattern matching is case-insensitive ...

Use BINARY keyword to make it case sensitive...

mysql>select * from testabc where stext like BINARY '%b%';

This should do the trick...

Refer: http://dev.mysql.com/doc/mysql/en/Pattern_matching.html

Regards,
Ram.


We Learn the Most When we have to Invent

Options: ReplyQuote


Subject
Written By
Posted
Re: how to search in text ?(怎么避免在TEXT字段中大小写的混合查找?)
August 23, 2004 04:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.