Salve, da stamattina ho iniziato ad operare con i trigger. Tuttavia però dopo alcuni tentativi non sono riuscito ad implementare un trigger abbastanza banale. Così ho deciso di copiare la soluzione del libro, che però essendo identica alla mia, mi da anch'essa un errore in sqldeveloper.
La tabella è la seguente :
CLIENTI(Nome, Cognome, Num_carta (primary key))
il trigger viene riportato così:
create trigger cliente_bef_ins
before insert on Clienti
for each row
begin
:new.nome := upper(:new.Nome);
:new.cognome := upper(:new.Cognome);
end;
L'errore riportato è:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: . ( * % & = - + ; </> at in is mod remainder not rem....)
Grazie a tutti per l'aiuto!
La tabella è la seguente :
CLIENTI(Nome, Cognome, Num_carta (primary key))
il trigger viene riportato così:
create trigger cliente_bef_ins
before insert on Clienti
for each row
begin
:new.nome := upper(:new.Nome);
:new.cognome := upper(:new.Cognome);
end;
L'errore riportato è:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: . ( * % & = - + ; </> at in is mod remainder not rem....)
Grazie a tutti per l'aiuto!