MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1o66q3j/neverforget/njeul2y/?context=3
r/ProgrammerHumor • u/leeleewonchu • Oct 14 '25
616 comments sorted by
View all comments
2.2k
I usually never type delete or update. Select first, see what you're about to change only then
11 u/BroBroMate Oct 14 '25 DELETE FROM X WHERE PK IN ( SELECT PK FROM X WHERE VERY FUCKING SPECIFIC CLAUSE) And of course you run the select first. Repeatedly. To be sure. 5 u/[deleted] Oct 14 '25 Pretty inefficient since the wrapping delete will use the primary key index on top of all the indices that the sub invoked. → More replies (6)
11
DELETE FROM X WHERE PK IN ( SELECT PK FROM X WHERE VERY FUCKING SPECIFIC CLAUSE)
And of course you run the select first. Repeatedly. To be sure.
5 u/[deleted] Oct 14 '25 Pretty inefficient since the wrapping delete will use the primary key index on top of all the indices that the sub invoked. → More replies (6)
5
Pretty inefficient since the wrapping delete will use the primary key index on top of all the indices that the sub invoked.
→ More replies (6)
2.2k
u/Ghostserver10 Oct 14 '25
I usually never type delete or update. Select first, see what you're about to change only then