I always find this a bit awkward, especially if there isn’t a straightforward (i.e. primary key) way of matching records across tables. I find the INNER JOIN syntax easier here — I always do a SELECT using the join criteria first, and inspect the results to make sure the right rows are getting matched, before doing an update.
UPDATE Property1 PI INNER JOIN Property2 TP ON
PI.column1=TP.column1 AND PI.column2=TP.propid
SET PI.seqno = TP.seqno
WHERE PI.recordtype=4 AND PI.seqno IS NULL
Note that I’m only updating one of the tables here, the one specified immediately after the UPDATE keyword.
Archétype Informatique SARL web design, 12 place Balmigère, 11200 Camplong d'Aude, Aude, France. Tél. (France) 04 68 43 52 38