MySQL Forums
Forum List  »  Triggers

Re: Trigger and LIKE SQL syntax
Posted by: Jay Pipes
Date: November 08, 2005 08:27AM

Try using:

select count(name) into old_name_count from store where name LIKE CONCAT('%', NEW.name, '%');

or

select count(name) into old_name_count from store where INSTR(name, NEW.name) > 0 ;

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Views
Written By
Posted
6816
November 08, 2005 03:10AM
Re: Trigger and LIKE SQL syntax
2582
November 08, 2005 08:27AM


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.