MySQL Forums
Forum List  »  Newbie

select problems
Posted by: Alexander Bradley
Date: May 13, 2005 11:08PM

Hi,

I am having some trouble with selecting info from one of my tables.
The table is called "countries" and the relevant column is "continent".

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. I cant understand this as when i look at the data, there is nothing after the last letter in "europe". No trailing spaces ... nothing!

If it is relevant, i imported the data from a file where this column was the last in the line. The datatype is varchar(50).

Any thoughts would be very much appreciated.

Regards

Sandy

Options: ReplyQuote


Subject
Written By
Posted
select problems
May 13, 2005 11:08PM
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.