hi is it possible to update a table with values ββfrom another table with restriction and offset?
for example, the t_device table has 600 rows and t_object has 100 rows
I want to update a column, but only the first 100 rows with an offset from the subquery, for example
update t_device set id_object = (select id_object from t_object limit 100) limit 100 offset 0; update t_device set id_object = (select id_object from t_object limit 100) limit 100 offset 100;
Is it possible? I can not find a solution to modify the value in t_device from t_object
im using postgres 8.4
source share