first commit

This commit is contained in:
schwaral
2022-11-25 07:07:16 +01:00
commit c086b964da
3188 changed files with 1063828 additions and 0 deletions

15
Trigger.sql Normal file
View File

@ -0,0 +1,15 @@
ALTER TABLE `update_log` ADD `user` VARCHAR( 200 ) NOT NULL
DROP TRIGGER IF EXISTS `update_durchfaller`;
delimiter |
CREATE TRIGGER update_durchfaller
AFTER UPDATE ON stud
FOR EACH ROW BEGIN
INSERT INTO update_log (uid, old, new, date, user) VALUES (NEW.uid, OLD.durchgefallen, NEW.durchgefallen,now(), user());
DELETE FROM update_log WHERE new=old;
END;
|
delimiter ;