Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
I want to update two or more columns of a table using the values from
another table using a single update.
It would be something like:
update table1 set (col1, col2)= ( select col1, col2 from table2 where
col3='aa' )
where col3='aa'
I've already seen that working some time ago, but I'm not remembering
the exact syntax now,
Thanks in advance,
--
Ricardo Palmeira
Tribunal de Contas do Estado de Pernambuco
mailto:palmeira@tce.pe.gov.br
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.