MySQL Forums
Forum List  »  Newbie

Re: select problems
Posted by: Felix Geerinckx
Date: May 14, 2005 12:45AM

Alexander Bradley wrote:

> If i use the following select statement, no records are returned.
>
> select * from countries where continent='europe'
>
> However, if i use;
>
> select * from countries where continent like 'europe%'
>
> then the appropriate records are returned.

What do you see when you

SELECT CONCAT('*', SUBSTRING(continent, -1, 1), '*') as LAST_CHAR FROM countries;

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
May 13, 2005 11:08PM
Re: select problems
May 14, 2005 12:45AM


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.