I need to update (replace) the fields in the MySQL database, but only if they have changed.
The table contains an identifier, a text box, and a modification date. Users request data by identifier depending on the date of its change. those. if the date precedes the last, the user requests data, he does not want this.
I want to change the date in the database only if the text field differs from the existing text field with the same identifier.
I could query the data, compare the result and send messages only if the new data is different, but it is a lot of overhead, and the database connection is rather slow, so I'm looking for a way to do this in a single request.
Thank.
source
share