MySQL Forums
Forum List  »  Newbie

select with and
Posted by: Pamela Whittaker
Date: June 18, 2018 08:12AM

I have a select statement with and AND = in it.


and field = "audit_preparedby"

That doesn't find anything even though the field contains 'audit_preparedby'



and field like "%preparedby" works ok


and field like "audit%" doesn't find anything


I am puzzled. Any idea why audit_ is causing a probelm in a = ?



It seems to be any field starting audit_


Thanks

Options: ReplyQuote


Subject
Written By
Posted
select with and
June 18, 2018 08:12AM
June 18, 2018 09:58AM


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.