MySQL timestamp column - auto update when last ACCESSED (not modified) -
so have timestamp column in table wanted update every time row accessed, including insert, select & update statements. (note not when row modified)
is there built-in feature mysql achieve this?
there feature this! in mysql called triggers. triggers can run additional mysql code when performing action (i.e.: when inserting, selecting, updating, deleting, etc. table).
Comments
Post a Comment