我想使用 1 个变量搜索一张表和多列。我的代码如下所示:
SELECT lCustomerID, sLastName, sFirstName, sAddress1, sAddress2,
sCity, sState, sZipcode , @search AS Expr1
FROM Customers
WHERE (sLastName = N'Includes @search')
OR (sFirstName = N'includes @search')
AND (sBarcode = N'includes @search')
我希望它包含字符串 not =