In MySQL, how to create custom message for this error message:
Cannot delete or update a parent row: a foreign key constraint fails (
database.jenis_fasum, CONSTRAINTjenis_fasum_ibfk_1FOREIGN KEY (id_kategori) REFERENCESkategori_fasum(id_kategori))
Using trigger maybe? Can someone provide an example?
Thanks for your help