UPDATE Mieter
SET Miete = Miete*1.05 WHERE Einzugsdatum <2007-12-31 && Auszugsdatum NOT NULL
Liefert folgenden Fehler:
0 row(s) affected, 1 warning(s): 1292 Incorrect date value: '1964' for column 'Einzugsdatum' at row 1 Rows matched: 0 Changed: 0 Warnings: 1 0.000 sec
Ne idee was ich machen könnte.
System: MYSQL aktuellste Version Engine: INNODB
Datensätze in Mieter:
'1', 'Daniel Koos', '1', '400', '100', '2007-01-01', '2009-03-01'
'2', 'Michael Meyer', '1', '400', '100', '2009-05-01', NULL
'3', 'Sascha Müller', '2', '580', '100', '2007-01-01', '2010-05-01'
'4', 'Hans Schmidt', '2', '580', '100', '2010-07-01', NULL
'5', 'Alexander Teisen', '3', '580', '150', '2007-01-01', '2011-07-01'
'6', 'Kirill Wolff', '3', '580', '150', '2011-09-01', NULL
'7', 'Laurente Gerassimow', '4', '580', '150', '2007-01-01', '2008-01-01'
'8', 'Vyacheslav Brandt', '4', '580', '150', '2008-03-01', NULL
'9', 'Grigori Heinrich', '5', '580', '150', '2007-01-01', NULL
'10', 'Yevgeni Sommer', '6', '600', '150', '2007-01-01', NULL
Danke für Hilfe
MfG
ein SQLAnfänger