【发布时间】:2013-10-18 00:33:33
【问题描述】:
我希望在一个 sql server 查询中使用 'contains' 和 'like',如下所示:
select *
from product
where
contains(product.title, '"*grand theft auto 5 (inkl. A*"')
or product.title like 'grand theft auto 5 (inkl. A%'
但似乎这不一起工作,没有错误但sql server不会结束请求。
这行得通:
select *
from product
where
contains(product.title, '"*grand theft auto 5 (inkl. A*"')
这也有效
select *
from product
where
product.title like 'grand theft auto 5 (inkl. A%'
结合这一点,我的想法是我找不到产品,因为 '.一个'
我认为'.'是一个停用词,但如果我可以将它与 like 结合起来,就会解决问题。
有什么帮助吗? 非常感谢
【问题讨论】:
标签: sql sql-server contains sql-like