MySQL Forums
Forum List  »  InnoDB

Use of 'like' in where clause.
Posted by: Aswathy Vijayan
Date: April 21, 2005 10:00AM

Hi,

Can somebody please tell me the difference between the below 2 SQL's.

select * from table_name
where col_name like 'aaa'

and

select * from table_name
where 'aaa' like col_name

The above 2 queries are returning me different result sets.

Please do help.

Thanks,
Aswathy

Options: ReplyQuote


Subject
Views
Written By
Posted
Use of 'like' in where clause.
8125
April 21, 2005 10:00AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.