您可以对联接使用UPDATE:
update observed_data as od set error = pd.predicted - od.observed from predicted_data as pd where (pd.lat, pd.long) = (od.lat, od.long);