Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jualh-> tglbayar -> null (backup)
- bayar_before_insert trigger
- #insert
- BEGIN
- update jualh set bayar = bayar + new.jumlah, tglbayar = CURRENT_TIMESTAMP() where idjualh = new.idjualh;
- END
- #delete
- BEGIN
- update jualh set bayar = bayar - old.jumlah, tglbayar = null where idjualh = old.idjualh;
- END
Advertisement
Add Comment
Please, Sign In to add comment