CREATE TRIGGER upd_bld AFTER INSERT ON MObjectBuildings
FOR EACH ROW
BEGIN
IF Fabric = '' THEN
SET Analysis='non';
END IF;
END;
CREATE TRIGGER `upd_bld` BEFORE INSERT ON `MObjectBuildings`
FOR EACH ROW
BEGIN
IF NEW.`Fabric` = '' THEN
SET NEW.`Analysis` = 'non';
END IF;
END;