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
Post a Comment