MySQL Forums
Forum List  »  German

Re: Teilstrings mit Like vergleiche
Posted by: Lotta Müller
Date: May 03, 2018 03:32AM

Hallo nochmal,

ich habe meine Abfrage jetzt wie folgt geändert.

SELECT segment FROM tabelle1 Where hotelname LIKE TRIM(TRAILING ' 2019' FROM "hotelname") OR hotelname Like "hotelname"

In phpmyadmin zeigt es mir alle Werte an, sowohl die mit Hotel als auch die mit Hotel 2019, allerdings wenn ich das ganze graphisch darstellen möchte, zeigt es mir wieder nur entweder Hotel oder Hotel 2019 an.

Was mache ich falsch?

Gruß Lotta

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Teilstrings mit Like vergleiche
459
May 03, 2018 03: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.