Felix Riesterer: SQL UPDATE betrifft keine Datensätze, gleichlautendes SELECT aber schon

Beitrag lesen

Lieber Rolf,

Ist events eine Table? Oder ein View? Welchen Datentyp hat die Spalte start?

Der Vollständigkeit halber hier ein auf das Wesentliche gekürzte CREATE:

CREATE TABLE `events` (
  `event` int NOT NULL COMMENT 'ID of an event entry',
  `start` datetime NOT NULL COMMENT 'Start time and day.',
  `end` datetime NOT NULL COMMENT 'End time and day.',
  `all_day` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Indicator for the duration of a whole day making start and end time meaningless.',
  `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'A short description or name of the event.',
  `occasion` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'A longer description of the event.',
  `notices` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Additional information on the event.',
  `contact` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Some note as for who to contact about this event.',
  `organizer` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'The login name of the user who made the event entry. This references the respective user in the users table.'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

Gibt es Trigger? Column-bezogene Rechtevergabe? myPhpAdmin sollte ja bei Rechteverletzungen eine passende Meldung werfen, aber ich habe ja keine Ahnung, was genau Du da geschnitzt hast…

Trigger? Ich weiß wie man das buchstabiert… Nee, im Ernst, überhaupt nichts mit fancy Sachen wie Constraints oder dergleichen.

Liebe Grüße

Felix Riesterer