MySQL Forums
Forum List  »  Newbie

Re: tricky query
Posted by: Stephen Counsell
Date: June 20, 2005 10:32AM

Hi,

Should be fairly simple, try this:

select * from members where lastname LIKE 'a%'
gets all the records where the lastname begins with 'a'

select * from members where lastname LIKE 'b%'
gets all the records where the lastname begins with 'b'

select * from members where lastname LIKE 'z%'
gets all the records where the lastname begins with 'z'

Hope that helps

regards
Steve

Options: ReplyQuote


Subject
Written By
Posted
June 20, 2005 10:06AM
Re: tricky query
June 20, 2005 10:32AM


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.