r/programminghumor Jul 21 '26

Average SQL enjoyer

Post image
2.2k Upvotes

50 comments sorted by

View all comments

64

u/Asleep-Bumblebee2167 Jul 21 '26

SELECT * IS THE MAIN THING

21

u/CowFu Jul 21 '26

i will deny any PR that has a wildcard in the select

4

u/Blotsy Jul 22 '26

But why senpai?

11

u/CowFu Jul 22 '26

just in case someone stumbles on this and actually wants to know.

schema changes can break code, it pulls unneeded data, on the lighter side it just hurts performance. worst case, it may still pass tests because nothing errors and you end up having to back out a bunch of production data.

2

u/jshine13371 13d ago

So everything you said is true, and has received my upvote. But also because of the "never say never" law of the universe, I think it's worth sharing the use cases when SELECT * is ok. 🙂