我想更新Table1,其中Address IS NULL格式为State:Zip in 1 single update statement,因为此表可能有10k行。在Oracle中
1 个答案:
答案 0 :(得分:0)
BEGIN
For i in (select id, name, zip from table2)
LOOP
Update table1 set address = state ||': '|| i.zip where id = i.id and
address is null;
END LOOP;
END;