Logo
!false - It's funny because it's true.
  • 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 Databases Debugging Backend Programming
9 months ago 615.1K 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

ProtoArc Ergonomic Mouse, EM11 NL Bluetooth Rechargeable Wireless Vertical Mouse, 3 Multi-Device Connectivity for Computer/PC/Laptop, 2.4GHz Optical Mice for Windows, Mac OS, Blue

ProtoArc Ergonomic Mouse, EM11 NL Bluetooth Rechargeable Wireless Vertical Mouse, 3 Multi-Device Connectivity for Computer/PC/Laptop, 2.4GHz Optical Mice for Windows, Mac OS, Blue

Affiliate
$28.99
The Parting Gift

The Parting Gift

C++
392.9K views 1 year ago
The AI Recommendation Sprint

The AI Recommendation Sprint

Programming
426.9K views 1 year ago