Use a loop in PL/SQL.