Logo
The first computer mouse had only one button.
  • 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
10 months ago 633.0K 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

Where's The Love

Where's The Love

Programming
149.4M views 10 days ago
Leyland Designs Gg - Git Gud (Black) Bumper Sticker Window Water Bottle Decal 5""

Leyland Designs Gg - Git Gud (Black) Bumper Sticker Window Water Bottle Decal 5""

Affiliate
$4.95
Damn Backend Dev's!

Damn Backend Dev's!

Frontend
75.0K views 3 years ago