码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2015-01-27 02:00:03      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:


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查询包含双引号”

标签:

原文地址:http://my.oschina.net/TOW/blog/372009

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!