“IN” can be used to match multi columns in SQL Server,
DECLARE @t TABLE (name varchar(100),name2 varchar(100))
INSERT INTO @t VALUES(‘AB’,'D’)
INSERT INTO @t VALUES(‘C’,'AB’)
SELECT * FROM @t WHERE ‘AB’ IN(name,name2)
RESULT :
name name2
AB D
C AB
lao yeye commented on 2012 年 10 月 23 日 at 上午 9:11
what’s up?burnSale
HelloFOFO commented on 2012 年 11 月 1 日 at 上午 10:22
我靠。。。