I have table1 (col1, col2) and table2 (col1, col2) as below /
Now I need to replace the col2 values ββof table1 with the corresponding col1 and col2 values ββfrom table2. To make the final table look like this. How can we do this in a request?
I assume table1.col2 and table2.col2 have the same text type (?)
update table1 set table1.col2=table2.col2 from table1 join table2 on (table1.col2=table2.col1)
Source: https://habr.com/ru/post/1432085/More articles:Does Google use the semantic network in any of its technologies or products? - semantic-webmaven ear / war problems and "deploy to save" doesn't work - java-eeStrange behavior with built-in ruby ββ- ruby ββ| fooobar.comC ++ constructor prevents successful compilation - c ++to disable button click event on iPhone - iphoneCannot send or receive presence with ASmack - javaoperator overload: normal MSVS, but crashes in g ++ - c ++How to change subtitle font color on TCheckBox, TRadioButton, TGroupBox? - propertiesFiltering meaningless phrases - nlpjavascript floating point comparison - javascriptAll Articles