SELECT
(replace([Col_Title],'" + Request.QueryString["kw"] + "','<font color='red'>" + Request.QueryString["kw"] + "</font>') as cTitle)
FROM [zgkxy].[dbo].[Col_News]
where charindex('" + Request.QueryString["kw"] + "',Col_Title)>0
转载于:https://www.cnblogs.com/xyzhuzhou/archive/2012/11/01/2749223.html