//在使用参数形式时 需要这样连接字符串 return String.Format("and {0} like '%'+@{0}+'%' ", par);
SELECT * FROM Persons WHERE City LIKE '%lon%' SELECT * FROM Persons WHERE City NOT LIKE '%lon%'