0
僅當來自表格的文本模式未顯示在產品名稱中時才試圖顯示查詢結果。Mysql:顯示不包含來自其他表格的文本模式的查詢結果
+-----------------------------------------+ +--------+
| Product Name | |pattern |
+-----------------------------------------+ +--------+
|Gangster Barbie with guns & accessories | | Gun |
|Very Safe Playdoh | | Drug |
|Star Wars Lego | | nam |
|Transformers Decepticon Druglord | | |
|GTA: Namcat Version | | |
+-----------------------------------------+ +--------+
想有結果:
+-----------------------------------------+
| Product Name |
+-----------------------------------------+
|Very Safe Playdoh |
|Star Wars Lego |
+-----------------------------------------+
我已經試過LIKE或INSTR如:
select `Product_Name`
from Product_table
where NOT LIKE '%'+(select `text_pattern`.`Keywords` from `text_pattern`)+'%';
但沒有一個似乎正常工作。有人能幫助或指出正確的方向嗎?