oguzhankircali
3/1/2019 - 7:02 AM

Update With Loop (PL-SQL)

--Creating Temp Table (Optional)
create table YourTempTable as 
SELECT * from YourTable --select statement


--update with loop
BEGIN
	FOR r IN (SELECT * FROM YourTempTable)
	LOOP	
	UPDATE YourAnotherTable SET ColumnName=r.ColumnName WHERE Id=r.Id;
	END loop;
END;