Duplicate records to database when entering data from form [message #331713] |
Fri, 04 July 2008 17:56 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
CatalinaD
Messages: 2 Registered: July 2008
|
Junior Member |
|
|
Hi
Can anyone help me with this?
I created an Oracle Form with a 'when-button-pushed' trigger:
declare
cod_client number(30);
begin
select COD_CL_SEQ.nextval into cod_client from dual;
insert into clienti values
(cod_client,:clienti.nume_client,:clienti.adresa_client,:clienti.cui_cnp,:clienti.banca,:clienti.cod_iban);
end;
COMMIT;
It inserts the data into the table but it duplicates it.
90000081 AASD ASDASD 1234 ASAD ASDASD
(null) AASD ASDASD 1234 ASAD ASDASD
90000086 SDFDF FSDG 24132 SDFASD CSADAF
(null) SDFDF FSDG 24132 SDFASD CSADAF
Does anyoane know why and how do I fix the problem?
Thank you
|
|
|
|
|
|
|
|
|