MySQL Forums
Forum List  »  InnoDB

Re: Use of 'like' in where clause.
Posted by: Agnar Renolen
Date: April 22, 2005 07:31AM

using LIKE, you can specify wild-cards: % means any number of characters (corresponds to '*' on file name wild cards, while _ means one single character (? on file names).


SELECT * FROM table_name WHERE col_name LIKE 'A%'

would select all records whose col_name start with an 'A'.

Options: ReplyQuote

Written By
April 21, 2005 10:00AM
Re: Use of 'like' in where clause.
April 22, 2005 07:31AM

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.