CodePudding user response:
Column turned after comparison table b, there is no insertCodePudding user response:
Insert into table b (station, cause)
The select a.s tation, a.c ause
A. the from list a
Left the join table b b
On a.s tation=b.s tation
And a.c ause=biggest ause
Where b.s tation is null