276
you are viewing a single comment's thread
view the rest of the comments
[-] jtk@lemmy.sdf.org 1 points 1 year ago

I did quite a few bad things like that early on. Now I never type UPDATE or DELETE without first doing a SELECT and WHERE. It's easy to convert to a DELETE and UPDATEs tend to effect only a few fields at a time so the extra effort is worth the peace of mind. It's a good habit to form, I can't even think of the last time I did anything horrible.

this post was submitted on 25 Jun 2023
276 points (99.3% liked)

Programmer Humor

32069 readers
2585 users here now

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

Rules:

founded 5 years ago
MODERATORS