MySQL - Find rows matching all rows from joined table

后端 未结 3 373
無奈伤痛
無奈伤痛 2021-01-27 12:36

Table 1: Tracks

Table 2: Wordlist

Table 3: N:M Track has Words (trackwords)

Find all tracks which have all the words.

currently the query looks l

3条回答
  •  没有蜡笔的小新
    2021-01-27 12:58

    Your problem set is very much like that of storing tags for an item like StackOverflow or Del.icio.us does.

    The article Tags: Database schemas proposes several solutions, among them @ChssPly76's idea.

提交回复
热议问题