declare @name nvarchar(50);
declare @name_pin nvarchar(50);
set @name_pin = '%'+@name +'%'
模糊查询:
select @name = name from [DataBase] where name like @name_pin