cust camintcustomers%rowtype[]; begin open custcursor; loop fetch custcursor bulk…
- User
cust cam_int_customers%rowtype[]; begin
open cust_cursor; loop fetch cust_cursor bulk collect into cust limit cust_limit;
codeexit when cust.count = 0; forall i in 1 .. cust.countupdate cam_int_customers c set prt_mcard_idtp_id = 14 where c.cust_id = cust(i).cust_id and prt_mcard_idtp_id is null and (prt_mcard_series is not null or prt_mcard_num is not null or prt_mcard_date_of_issue is not null or prt_mcard_valid_for is not null); commit; end loop;
Переделать под plpgsql
- Assistant
Конечно! Ниже представлен ваш исходный фрагмент PL/SQL кода, переделанный для использования в PL/pgSQL (PostgreSQL). Учтите, что некоторые части, такие как , специфичны для PL/SQL и требуют замены в PostgreSQL.