Small example of sql statement

merge into stkcode a
using (select * from stkcode t
where t.change_type='1')b
on (a.id=b.id and a.stock_code=b.stock_code)
update
set a.change_type=b.change_type||',2'
where a.change_type='1';
commit;

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326999437&siteId=291194637