我在 all_metadata 行的下表中定义了全文目录:
ft_id record_id am_changestamp all_metadata
21 42 2012-09-11 17:07:25.553 Photos Project 1234 5678 |Mockups|pictures|Abbot| testing Revenue migration testing Getty Images Abbot g test.txt
22 43 2012-09-11 17:11:06.147 Photos Project 1234 5678 |Mockups|pictures|Abbot| testing Revenue migration testing Getty Images Abbot g test1.txt
我正在运行的 SQL 是:
select f0.record_id from ft_all_metadata as f0,
containstable(ft_all_metadata, all_metadata, N'Images') as kt where f0.ft_id = kt.[key]
SQL 返回第一行但不返回第二行!!!!我真的很困惑!
我尝试重新创建和重新构建全文目录,但没有成功。
感谢您的帮助,布鲁斯