triger
update_stok_buku
tbl_pasok
after
insert
UPDATE tbl_buku set tbl_buku.stok = tbl_buku.stok + new.jumlah WHERE tbl_buku.id_buku = new.id_buku
update stok
tbl_penjualan
after
insert
UPDATE tbl_buku set tbl_buku.stok = tbl_buku.stok - new.jumlah WHERE tbl_buku.id_buku = new.id_buku
tbl_pasok
after
insert
UPDATE tbl_buku set tbl_buku.stok = tbl_buku.stok + new.jumlah WHERE tbl_buku.id_buku = new.id_buku
update stok
tbl_penjualan
after
insert
UPDATE tbl_buku set tbl_buku.stok = tbl_buku.stok - new.jumlah WHERE tbl_buku.id_buku = new.id_buku
Comments
Post a Comment