DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Oracle (http://www.daniweb.com/forums/forum129.html)
-   -   Trigger error (http://www.daniweb.com/forums/thread122406.html)

veledrom May 4th, 2008 3:05 pm
Trigger error
 
Hi,
Where is the mistake? It doesn't work. thanks

CREATE OR REPLACE TRIGGER A_ACCOUNT_EKLEME
BEFORE INSERT ON A_SIPARIS

CURSOR CURSOR_TARIH IS
SELECT TARIH FROM A_ACCOUNT where TARIH = SYSDATE;

FOR EACH ROW
BEGIN
   
    IF CURSOR_TARIH%NOTFOUND THEN
      INSERT INTO A_ACCOUNT (TARIH, PRICE) VALUES (SYSDATE, '1');
    END IF;
END;

peter_budo May 9th, 2008 6:51 am
Re: Trigger error
 
You marked this post as solved. Did you find solution? Would you mind to share it with otheres?

veledrom May 9th, 2008 9:26 am
Re: Trigger error
 
I just changed the logic of my project. Therefore, i don't use it.


All times are GMT -4. The time now is 2:42 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC