Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
-- a tutti i rapporti del cliente
DECLARE
CURSOR popolaRapporto IS
SELECT
*
FROM
tmp_pfprap_03069;
I NUMBER(38,0);
BEGIN
I :=0;
FOR cur_item IN popolaRapporto
LOOP
I := I+1;
MERGE
INTO
rapporto a1
USING
(
SELECT
cur_item.GENERATED_NDG AS NDG,
cur_item.BANCA AS CODICEBANCA,
cur_item.GENERATED_CODICERAPPORTO AS CODICERAPPORTO,
cur_item.C_TIPO AS TIPO,
cur_item.C_SOTTOTIPO AS SOTTOTIPO,
cur_item.C_STATO AS STATO,
cur_item.D_APERTURA AS DATAINIZIO,
cur_item.D_CHIUSURA AS DATAFINE,
cur_item.C_FILIALE AS CODICEAGENZIA,
cur_item.D_APERTURA AS DATAACCENSIONE,
cur_item.D_CHIUSURA AS DATAESTINZIONE,
cur_item.REGIME_FISCALE AS REGIMEFIS
FROM
dual) a
ON
(
a1.ndg= a.ndg
AND a1.CODICERAPPORTO = a.CODICERAPPORTO)
WHEN MATCHED
THEN
UPDATE
SET
a1.CODICEBANCA= a.CODICEBANCA,
a1.TIPO= a.TIPO,
a1.SOTTOTIPO= a.SOTTOTIPO,
a1.STATO= a.STATO,
a1.DATAINIZIO= a.DATAINIZIO,
a1.DATAFINE= a.DATAFINE,
a1.CODICEAGENZIA= a.CODICEAGENZIA,
a1.DATAACCENSIONE= a.DATAACCENSIONE
WHEN NOT MATCHED
THEN
INSERT
(
NDG,
CODICEBANCA,
CODICERAPPORTO,
TIPO,
SOTTOTIPO,
STATO,
DATAINIZIO,
DATAFINE,
CODICEAGENZIA,
DATAACCENSIONE
)
VALUES
(
a.NDG,
a.CODICEBANCA,
a.CODICERAPPORTO,
a.TIPO,
a.SOTTOTIPO,
a.STATO,
a.DATAINIZIO,
a.DATAFINE,
a.CODICEAGENZIA,
a.DATAACCENSIONE
);
IF MOD(I,10000) = 0 THEN
COMMIT;
END IF;
END LOOP;
COMMIT;
END;
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team