All pastes #15119 Raw Edit

Miscellany

public text v1 · immutable
#15119 ·published 2005-06-20 19:39 UTC
rendered paste body
It's okay to use a subquery for assignment within an UPDATE statement, since subqueries are legal in UPDATE and DELETE statements as well as in SELECT statements. However, you cannot use the same table, in this case table t1, for both the subquery's FROM clause and the update target.