模糊搜索存储过程Sql语句

create PROCEDURE [dbo].[UP_News_Search]
@Title varchar(50)
 AS
 SELECT
 ID,TypeID,TypeName,Title,Source,ViewCount,Contents,IsHome,CreateTime
  FROM [News]
  WHERE Title like '%'+@Title+'%'

你可能感兴趣的:(模糊搜索存储过程Sql语句)