Prompt how it would be correct to create one request in which the data in several tables would be updated at once? In MySQL, I used this method before.
UPDATE customer, customer_order SET closed = 1, closedAt = NOW() WHERE closed = 0 AND accept = 1; But PostgreSQL shows an error
ERROR: syntax error at or near "," LINE 1: UPDATE customer, customer_order ^ I do not really want to do separate requests. Maybe there is an option to do everything in one?