oracle - SELECT within UPDATE gives an error -


i getting sql error: ora-01779: cannot modify column maps non key-preserved table error on statement:

update  ( select cells.num, und.client_params cells  left outer join und  on cells.und_id = und.id cells.sase = 1 ) t set t.client_params = 'test'; 

i update client_params field rows, select returns.

the straightforward (though possibly not efficient) way update rows in 1 table correspond directly rows in table via identity column use where table1.column in (select id table2 ...).

in case:

update und set    client_params = 'test'  id in    (select und_id       cells      sase=1) 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -