F
FeelLikeANut
When you need to update a value in a file, it's pretty simple: lock
exclusively, read the value, manipulate it, write it, and release the
lock. I'm not sure how this world work with an SQL database, however.
I can use the select statement to read the value and the update
statement to write the value, but how do I make sure that the value
isn't tampered with between those two statements?
exclusively, read the value, manipulate it, write it, and release the
lock. I'm not sure how this world work with an SQL database, however.
I can use the select statement to read the value and the update
statement to write the value, but how do I make sure that the value
isn't tampered with between those two statements?