sql中on和where之间的区别

时间:2017-06-28 17:03:49

标签: mysql sql join

我有2个查询 查询1

delete b from automation1 b 
join report r
on b.Account_Number_Name = r.Account_Number
where b.StatementDate = r.StatementDate and
b.Cost = r.Cost and
b.ActualStartDate = r.StartDate and
b.ActualEndDate = r.EndDate and
b.Use = r.TotalUse
;

Query2

delete b from automation1 b 
join report r
on b.Account_Number_Name = r.Account_Number and
b.StatementDate = r.StatementDate and
b.Cost = r.Cost and
b.ActualStartDate = r.StartDate and
b.ActualEndDate = r.EndDate and
b.Use = r.TotalUse
;

此查询之间有什么区别

0 个答案:

没有答案