mysql - automatically add current timestamp when queried -


so whenever user queries table , add current timestamp in lastmodified column manually below.

select *  `table` `id`=10 insert `table` (`lastmodified`) values ('$timestamp') `id`=10; 

is there anyway create column updates column current timestamp whenever use select particular row ? or if not possible how combine both of queries above single..


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -