|
I did not use a timestamp, that is to judge when submitting the data, I used to add a time field to the table that needs to be uniquely updated, this field is used to record the time when the record was last updated, such as the record to be updated now The value of the time field is 2017-01-01 1:00:00, and the predefined timeout interval for the operation is 20 minutes. If the operation time does not exceed the defined timeout interval when compared with the time field in the record, then someone is considered The record, otherwise it is considered that the timeout record can be edited.
Tell me how do you do this kind of operation? |
|