sers!
hab so nen nettes newsscriptlein mir geproggt.
aus faulheit *hust* hab ich als datum in die datenbank einfach
nen timestamp reingemacht. funkt auch toll, aber wenn ich die
daten mal editiere, ändert sich auch der timestamp ->
anderes datum.
mysql manual sagt unter 6.2.2.2 folgendes:
Automatic updating of the first TIMESTAMP column occurs under any of the following conditions:
* The column is not specified explicitly in an INSERT or LOAD DATA INFILE statement.
* The column is not specified explicitly in an UPDATE statement and some other column changes value. (Note that an UPDATE that sets a column to the value it already has will not cause the TIMESTAMP column to be updated, because if you set a column to its current value, MySQL ignores the update for efficiency.)
* You explicitly set the TIMESTAMP column to NULL.
gibts ne möglichkeit das zu umgehen? oder muss ich einfach auf
date() umsteigen?
update tablename set dasfelddasduaendernmoechtest=„foo“, timestampfeld=timestampfeld;