
update "mailbox-outer".mail m set m.satisfaction_sms = s.satisfaction_sms from  "mailbox-outer".sms_send s where m.id = s.mail_id and s.satisfaction_sms is not null;