Prevent user from editing the same record
问题 I'm developing a Multiple user application on same network usign MySQL & Java. What I'm looking for is: User A: Modifying Record 100 User B: Try to view or modify same record 100. I want the application to return error message for User B, that record already editing by another user. How can i do this? 回答1: Include an edit_timestamp in the tables of your database you want to prevent from multiple users updating, which you'll update every time anyone edit the row. In your forms, include a