Thank you very much. This works: UPDATE
test SET code=T2.code FROM test T2 WHERE test.code=0 AND test.master=T2.name; Igor ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]