SQL 全文索引CONTAINS查询包含双引号”


public static string FullTextSpecialSymbols(string strText)
    {
        strText = strText.Trim();
        strText = strText.Replace("\"","''");

        return strText;
    }

当然中间可以继续追加需要的过滤。

参考 :http://stackoverflow.com/questions/387198/escape-double-quotes-in-sql-2005-2008

你可能感兴趣的:(SQL 全文索引CONTAINS查询包含双引号”)