我有什么:
WHERE (dbo.Field1 LIKE '% contact made %' OR dbo.Field1 LIKE '% talked to %')
我需要以下内容:
WHERE (dbo.Field1 LIKE IN (SELECT Pattern FROM PatternTable))
PatternTable
------------
% contact made %
% talked to %
% called in %
% spoke with %
% spoke to %
答案 0 :(得分:3)
在Oracle中你可以做到
SELECT * FROM dbo
JOIN PatterTable ON dbo.Field LIKE PatterTable.pattern
我认为这也适用于SQL Server。
答案 1 :(得分:0)