Faster and easier with the FROM in the UPDATE :
UPDATE team_prsnl p SET updt_dt_tm = now() ,last_access_dt_tm = now() FROM tmp_team_list t WHERE p.team_id = t.team_id;
Aside, when working with an array, the WHERE should be
WHERE team_id = ANY (team_ids)
The IN construct works with sets, not arrays.
Erwin brandstetter
source share