setiap karyawan berusia (hari ini - tgl_lhr) >= 60 thn dan id_card telah 
dicetak (tgl_cetak_id), maka field tgl_pjg_id otomatis berubah (update) menjadi 
tgl-bln cetak dan thnnya 2050 alias berubah menjadi member seumur hidup

--- On Thu, 2/11/10, juanda hakim <[email protected]> wrote:

From: juanda hakim <[email protected]>
Subject: Bls: Bls: [indo-oracle] Mhn Koreksi Error Trigger Update
To: [email protected]
Date: Thursday, February 11, 2010, 8:39 PM







 



  


    
      
      
      saya sependapat dengan mas agus,,,

karena akan terjadi muttating



____________ _________ _________ __

Dari: Agus Haryanto <agus_...@yahoo. com>

Kepada: indo-oracle@ yahoogroups. com

Terkirim: Kam, 11 Februari, 2010 17:56:39

Judul: Re: Bls: [indo-oracle] Mhn Koreksi Error Trigger Update



Walaupun masalah tgl_LHR solve,



akan muncul error muttating triggers.



karena triggernya mengupdate table itu sendiri. (dalam hal ini table 
karywawan). 



yang perlu diperjelas lagi, sebetulnya trigger ini fungsinya untuk apa ?



Regard's



Agus



____________ _________ _________ __

From: juanda hakim <juanda_st3@ yahoo. co.id>

To: indo-oracle@ yahoogroups. com

Sent: Thu, 11 February, 2010 17:41:52

Subject: Bls: [indo-oracle] Mhn Koreksi Error Trigger Update



tgl_LHR  itu apa??

apakah tgl_lhr itu merupakan atribut??



____________ _________ _________ __

Dari: Padang Nadimpu <nadi...@yahoo. com>

Kepada: indo-oracle@ yahoogroups. com

Terkirim: Kam, 11 Februari, 2010 17:31:03

Judul: [indo-oracle] Mhn Koreksi Error Trigger Update



Master Oracle, mohon dikoreksi error trigger update :



SQL> CREATE OR REPLACE TRIGGER ID_SEUMUR_HIDUP

2  AFTER UPDATE ON KARYAWAN FOR EACH ROW

3  DECLARE

4  BEGIN

5     IF FLOOR(MONTHS_ BETWEEN(sysdate, TGL_LHR)/ 12)>=60 

6        AND TGL_CETAK_ID IS NOT NULL

7         THEN

8        UPDATE KARYAWAN

9           SET TGL_PJG_ID= TO_CHAR(TGL_ CETAK_ID, 'DD-MM-') ||'2050' WHERE NIK 
= :NEW.NIK;

10     END IF;

11  END;

12  /



Warning: Trigger created with compilation errors.



SQL> 

SQL> 

SQL> SHOW ERROR;

Errors for TRIGGER ID_SEUMUR_HIDUP:



LINE/COL ERROR

-------- ------------ --------- --------- --------- --------- --------- -

3/4      PL/SQL: Statement ignored

3/36     PLS-00201: identifier 'TGL_LHR' must be declared

SQL> 



Atas kesediaannya, diucapkan trims



Apakah saya bisa menurunkan berat badan? Temukan jawabannya di Yahoo! Answers!

http://id.answers. yahoo.com



[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]



Nikmati chatting lebih sering di blog dan situs web. Gunakan Wizard Pembuat 
Pingbox Online. http://id.messenger .yahoo.com/ pingbox/



[Non-text portions of this message have been removed]





    
     

    
    


 



  






      

[Non-text portions of this message have been removed]

Kirim email ke