sql searching multiple words in a string

前端 未结 8 771
故里飘歌
故里飘歌 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:09

    Select * from table where 
      columnname like'%David%' and 
      columnname like '%Moses%' and columnname like'%Robi%' 
    

提交回复
热议问题