Logo
The code works on my machine :shrug:
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Delete-statement Memes

Posts tagged with Delete-statement

It Works But Only One Time

Csharp Programming Debugging Databases Backend
9 months ago 598.3K views 3 shares
It Works But Only One Time
Someone wrote a method to count employees, but there's a tiny problem: it deletes ALL the employees from the database first, then counts how many are left. Spoiler alert: zero. Every single time after the first run, you're counting an empty table. The function technically works once—before it nukes your entire workforce into the digital void. The best part? They're using using statements for proper resource disposal, so at least the database connection is being cleaned up responsibly while the employee data gets yeeted into oblivion. Priorities, right? Pro tip: maybe fetch the count BEFORE running DELETE FROM. Or better yet, don't run DELETE FROM at all when you just want to count rows. That's what SELECT COUNT(*) is for. Your HR department will thank you.

Today's picks

WALI Adjustable Single Monitor Arm for 13-34 inch Screens, up to 26.4 lbs

WALI Adjustable Single Monitor Arm for 13-34 inch Screens, up to 26.4 lbs

Affiliate
$25.49
My bank's support bot.

My bank's support bot.

Programming
89.0K views 3 years ago
The best worst thing

The best worst thing

Programming
90.3K views 4 years ago