Quantcast
Channel: Toad for Oracle
Viewing all articles
Browse latest Browse all 4009

Forum Post: RE: How to update a column in one table by getting values from a column in another table when subquery returns "more than one rows" error.

$
0
0
Hi Arijit, thanks for your suggestion, it actually worked. I have used the following statement: MERGE INTO Table_1 a USING (SELECT P_FID, P_Value FROM Table_2) b ON (a.N_FID = b.P_FID) WHEN MATCHED THEN UPDATE SET a.N_Value = b.P_Value WHERE a.N_Value = '21000'

Viewing all articles
Browse latest Browse all 4009

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>