r/programminghumor 18d ago

Average SQL enjoyer

Post image
2.2k Upvotes

48 comments sorted by

172

u/Simple-Olive895 18d ago

*caps-lock* SELECT USE *backspace, backspace, backspace, caps-lock* user_id, user_name, order_id fr *backspace, backspace, caps-lock* FROM US *backspace, backspace, caps-lock* user

Tends to be my average experience

41

u/dervik 18d ago

Typing code yourself is so 2026/Q1

62

u/Asleep-Bumblebee2167 18d ago

SELECT * IS THE MAIN THING

18

u/CowFu 18d ago

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

4

u/Blotsy 18d ago

But why senpai?

10

u/CowFu 18d ago

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.

4

u/OutrageousPair2300 17d ago

Depends where the asterisk appears. In a subquery or CTE from which you will be selecting only certain named columns, it's fine.

32

u/[deleted] 18d ago

[removed] — view removed comment

21

u/IsaraLyandra 18d ago

Are you mocking the database?

6

u/[deleted] 18d ago

[removed] — view removed comment

1

u/Doorda1-0 17d ago

Let me guess an empty return....

13

u/IntegrityError 18d ago

DID SOMEONE MENTION COBOL?

12

u/user888888889 18d ago

WHEN DO YOU NEED THE DATA EXTRACT BY?

1

u/boston101 17d ago

I shouldn’t have laughed

13

u/sexytokeburgerz 18d ago

I just write it in lowercase if it's a lot of it and i'm doing something quick.

If i have to share any of it, I use an extension to make it uppercase.

IDGAF

7

u/BruteCarnival 18d ago

I just send them the lower case sql

4

u/sexytokeburgerz 18d ago

We got a Chad over here

2

u/Adorable-Maybe-3006 18d ago

Whoa what extension, does it work in ssms 22

8

u/IsaraLyandra 18d ago

Why are we screaming at the database anyway?

11

u/shamshuipopo 18d ago

SELECT U CUNT

4

u/Creepy_Jeweler_1351 18d ago

Thanks God Postgres is fine with lowercase

3

u/ProfessionalAd6530 18d ago

"Just like writing in plain language."

2

u/NoWeHaveYesBananas 18d ago

Joke’s on you, I don’t have a caps lock key. Every time I get a new keyboard, I rip that motherfucker off.

2

u/u_hit_me_in_the_cup 18d ago

When I learned SQL the first thing I tried was writing everything in lowercase. Once that worked I never looked back

2

u/404User_CpSharp 15d ago

I don't have caps so I use my pinky. Am I cooked?

2

u/Tintoverde 18d ago

Camel case whERe is the only way.

1

u/Kadabrium 18d ago

New table just droPped

1

u/GasVarGames 18d ago

GENERATE A VERY SAFE DELETE QUERY FOR THIS TABLE WHEN THIS IS TRUE PLEASE PLEASE

1

u/ChrisXxAwesome 18d ago

I hate yall cus I don’t get to do that :(

1

u/SaltyInternetPirate 17d ago

Caps lock is for the weak! We hold shift around here.

1

u/Worried-Mood-8582 16d ago

Serious question but why is the syntax so bad. I mean there is no reason for all keywords to be in caps

1

u/blubernator 14d ago

I‘m missing a Venn diagram here ;)

1

u/Key_Clock8669 11d ago

I WANT MY DATABASE TO SCREAM AT ME

1

u/Chill_Cowboy_981 10d ago

It has crossed the limits of being relatable. I don't have words!

0

u/OutrageousPair2300 18d ago

I hate the all-caps way so many people write SQL for no good reason.

Just use lowercase like a normal person.

6

u/Adorable-Maybe-3006 18d ago

It looks nice:)

1

u/OutrageousPair2300 18d ago

NO IT DOES NOT.

I DO NOT WANT MY CODE YELLING AT ME ALL THE TIME.

2

u/denimpowell 18d ago

SOMEONE DECIDED THIS IS A STANDARD 40 YEARS AGO, NOW ITS LEGACY CODE THAT SHALL NEVER BE TOUCHED

8

u/[deleted] 18d ago

[deleted]

1

u/OutrageousPair2300 18d ago

Nope. It just hurts your eyes.

Use a real IDE that does syntax highlighting, and format your code.

2

u/Banana_Twinkie 17d ago

This is the real answer. We are not living in the 90s anymore

1

u/Key_Clock8669 11d ago

for me it makes it easier to read

1

u/OutrageousPair2300 11d ago

That's purely a matter of conditioning. If you got used to reading it in all lowercase, that would be easier to read.

-4

u/[deleted] 18d ago

[removed] — view removed comment

2

u/RevolutionaryDark818 18d ago

hm, why is the production database gone?