zbw.dbproject/MySQL/SP_v_logentries.sql
2019-05-07 18:11:41 +02:00

19 lines
300 B
SQL

# Stored Procedure bereinigung der quittierte Logs
DELIMITER //
CREATE PROCEDURE LogClear
(
IN _logentries_id INT
)
BEGIN
DELETE FROM v_logentries
WHERE _logentries_id = v_logentrie_id;
UPDATE Log
SET is_acknowledged = 1
WHERE log_id = _logentries_id;
END //
DELIMITER ;