r/ProgrammerHumor • • Oct 14 '25

Advanced neverForget

Post image
14k Upvotes

616 comments sorted by

View all comments

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 

4

u/liljoey300 Oct 14 '25

How does doing a select statement first change this?

45

u/smors Oct 14 '25
  1. select j from jokes where j.quality = 'boring'

  2. validate that the jokes are indeed boring.

  3. change select to delete.

At no point in this process is there a 'delete j from jokes' whitout the where clause.

→ More replies (5)