MySQL Forums
Forum List  »  Newbie

select from where multiple conditions
Posted by: Stefan Kügerl
Date: April 19, 2019 01:03AM

Hello,

is there a function which gives me back which conditions have been met when i have a select query with multiple conditions?

e.g .:

select id, column from table where column like '%an_example' or column like 'another%example' or column like 'last%example%';

I now get e.g. that 1 condition has been fulfilled, but not which one, is it possible to give back this information additionally?

Thanks in advance!

LG
Stefan

Options: ReplyQuote


Subject
Written By
Posted
select from where multiple conditions
April 19, 2019 01:03AM


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.