this post was submitted on 06 Nov 2023
1309 points (98.7% liked)

Programmer Humor

31812 readers
567 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 9 months ago* (last edited 9 months ago) (1 children)

Why update before select? Shouldn't it be the other way around? (I'm clueless. )

[–] [email protected] 9 points 9 months ago (1 children)

The select after the update is to check if the update went through properly. You can have more selects before the update if you wanted to.

[–] [email protected] 2 points 9 months ago

Ah. It makes sense now. Thanks.