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

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -