MySQL Forums
Forum List  »  Newbie

Re: my brain hurts
Posted by: Jay Pipes
Date: August 11, 2005 07:55PM

SELECT dc.code
FROM dialcode dc
WHERE INSTR('0118234567890', dc.code) > 0
ORDER BY LENGTH(dc.code) DESC
LIMIT 1;

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

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

Options: ReplyQuote


Subject
Written By
Posted
August 11, 2005 11:57AM
Re: my brain hurts
August 11, 2005 07:55PM
August 12, 2005 08:38AM
August 12, 2005 08:48AM
August 11, 2005 07:57PM
August 12, 2005 08:40AM


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.