why is "else" on the trigger considered wrong? – Phpmyadmin
I wrote the following code DELIMITER $$ CREATE TRIGGER bm_keuangan AFTER UPDATE ON pembayaran_project FOR EACH ROW BEGIN DECLARE nama_project varchar(100); DECLARE cek_di_keuangan varchar(100); IF (!(isnull(NEW.deleted_at))) THEN UPDATE keuangan SET keuangan.deleted_at = now() WHERE keuangan.ref = NEW.id AND keuangan.jk_id =…