sql - Touch MYSQL record to update TIMESTAMP field -


in database have table column

`lastupdated` timestamp not null default current_timestamp on update current_timestamp, 

i touch record in table lastupdated column automatically updated don't want change value in row.

is possible?

thank you.

afaik, don't have options use touch update mysql table records touch file in unix systems. have issue update query update timestamp in lastupdated column .

update mytable set lastupdated=now() ... 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -