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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -