![]() |
#2
cnfarer2012-10-31 07:10
|
表A:
id int(primary key)
word nvarchar(50)
表B:
id int(primary key)
title nvarchar(800)
在表B中的title字段上建全文索引,现在查询title中含有表A中word的记录,怎么查?
我知道查询具体内容,如“super hero”时用下面的查询:
select * from 表B where contains(title,'"super hero"')
但换成匹配表A中的word字段,该怎么写(不要用循环)
谢谢