-2

Here's an example.

enter image description here

I want to update Table1 where Address IS NULL to the format State: Zip in 1 single update statement as this table probably has 10k rows. In Oracle

JDunn
  • 107
  • 1
  • 3
  • 10

1 Answers1

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;
JDunn
  • 107
  • 1
  • 3
  • 10