简体   繁体   中英

Logging time stamp of last update for every record

I am using an sqlite3 database in Linux. I want to log the last update time stamp for every record. Can any one suggest me a way to automate this process?

You need to create a table with a timestamp column. Every time you do something to a row in your column, you need to execute an UPDATE statement on that row, such as

UPDATE table_name
SET column1=value, column2=value2,...
WHERE some_column=some_value

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM