如何在SQL Server 2012的“文件表”中将字符串This is a sample
传递给CONTAINS
。
CONTAINS
关键字不接受空格,括号。
SELECT *
FROM Sample_FILETable
WHERE CONTAINS (file_stream, 'This is a sample') ;
答案 0 :(得分:0)
使用Like
SELECT * FROM Sample_FILETable where file_stream like '%This is a sample%'