0

如何用手机号查询同城两张表

SELECT top 1 CandidateSerials.MobileNo 
FROM CandidateSerials 
Inner Join EmployerSerials ON CandidateSerials.Id = EmployerSerials.Id  
Where  CandidateSerials.City  <> EmployerSerials.City and EmployerSerials.MobileNo ='000000000'
4

1 回答 1

0
SELECT TOP 1 CandidateSerials.MobileNo     
FROM CandidateSerials 
INNER JOIN EmployerSerials
ON CandidateSerials.Id = EmployerSerials.Id
AND CandidateSerials.City = EmployerSerials.City
WHERE EmployerSerials.MobileNo ='000000000'
于 2013-06-21T09:33:05.997 回答