select * from record where LOCATE(SrcTerm,DestTerm)>0 or LOCATE(DestTerm,SrcTerm)>0