Monday 9 April 2012

Trigger Insert

  1 comment    
DELIMITER $$

DROP TRIGGER `coba`.`tr_Insert`$$

CREATE TRIGGER `coba`.`tr_Insert` BEFORE INSERT on `coba`.`tbl_pertama`
FOR EACH ROW
BEGIN
insert into tbl_kedua values (new.kode,new.nama);
END$$

DELIMITER ;

1 comment:

  1. contohnya tambah lagi mass ..
    trus kasih penjelasan juga dunkk ..

    ReplyDelete