Hello I have a problem with mysql trigger:
DELIMITER $$
CREATE TRIGGER update_forum_admin
after UPDATE ON sb_admins
FOR EACH ROW BEGIN
INSERT INTO `mysql_db`.`trigger_log` (`dato`, `trigger`, `status`) VALUES (NOW(), 'update_forum_admin', OLD.user+"="+NEW.user);
END$$
DELIMITER ;
The problem is about:
OLD.user+"="+NEW.user
The result of this is just 0, but I wanna have it to show the Old user name plus "=" plus the new user name.
But what statement do I need for that?