![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hallo, have following problem: I have to send an updated Row to a history table. CREATE DEFINER=`root`@`xxxxxxx` TRIGGER `pp`.`buTrigger_Adresse` BEFORE UPDATE ON `pp`.`t_adresse` FOR EACH ROW BEGIN SET @iU = 0, @iDate = "1900.00.00 00.00.00"; -- sp converts user to userID and return timestamp CALL sp_User2PersonID (@iU, @iDate); SET NEW.modusr = @iU, NEW.moddate = @iDate; INSERT INTO x_adresse ( SELECT *, NULL, @iU, NULL FROM t_adresse WHERE NEW.modusr = @iU AND NEW.moddate = @iDate ); END$$ |
![]() |
| Thread Tools | |
| Display Modes | |
| |