Essayez ce qui suit : update boat b, (select avg(length) avg_len from boat) v set b.rellength = v.avg_len