MySQL Forums
Forum List  »  German

Anzahl Treffer bei 'LIKE'
Posted by: Robert Passmann
Date: December 21, 2008 07:38AM

Hallo,

ich habe eine Tabelle film mit filmtiteln und keywords. Nun lasse ich mir mit einem Query Filme mit bestimmten Keywords anzeigen, z.B. "SELECT * FROM `film` WHERE `keywords` LIKE '%Action%' AND `keywords` LIKE '%Bruce Willis%'". Nun erhalte ich verschiedene Filme, z.B. einen Film, der die Keywords Action und Bruce Willis besitzt, einen anderen, der nur Action besitzt und noch einen, der nur Bruce Willis besitzt.
Gibt es nun eine Möglichkeit noch eine dritte Spalte zu erstellen, in der die Anzahl der Treffer enthalten ist (Beim ersten 2, beim zweiten und dritten 1)?

Vielen Dank schomal

Options: ReplyQuote


Subject
Views
Written By
Posted
Anzahl Treffer bei 'LIKE'
4435
December 21, 2008 07:38AM
2485
December 21, 2008 02:55PM


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.