sql searching multiple words in a string

前端 未结 8 744
故里飘歌
故里飘歌 2020-12-09 02:35

What is the most efficient and elegant SQL query looking for a string containing the words \"David\", \"Moses\" and \"Robi\". Assume the table is named T an

8条回答
  •  遥遥无期
    2020-12-09 03:11

    If you care about the sequence of the terms, you may consider using a syntax like

    select * from T where C like'%David%Moses%Robi%'
    

提交回复
热议问题