所以我有一堆产品......我有一个全文搜索表,如何查询,请更正我的代码..如果我想做某些事情
SELECT myID, myName, myAddress FROM myTable where myID IN (Select myIDFullText From myFullTextTable where FREETEXT(*,'Joe jane'))
这是错的,但我无法弄清楚如何让它发挥作用。
谢谢
答案 0 :(得分:0)
你想做的事情如下:
SELECT myID, myName, myAddress FROM myTable where myID IN (Select myIDFullText From myFullTextTable WHERE CONTAINS(myName, 'Some Text'))
此链接也应该有用http://msdn.microsoft.com/en-us/library/ms142547.aspx