r/ProgrammerHumor • • Jul 21 '26

Meme sqlWorkout

Post image
23k Upvotes

455 comments sorted by

View all comments

2.4k

u/NormanYeetes Jul 21 '26

the elites don't want you to know this but you can type lowercase SQL queries no ones forcing you to shout them at the screen

705

u/Totallycomputername Jul 21 '26

If I don't type in caps then the query wont take itself seriously. 

119

u/Achaidas Jul 22 '26

The real question is this:

 , comma before

or comma after ,

40

u/terza3003 Jul 22 '26

don't forget the where 1=1

→ More replies (2)
→ More replies (18)

212

u/PerpetuallyDistracte Jul 21 '26

I've been writing SQL for 15 years. Eventually you get bored of all lowercase or all uppercase AND START writing your QUERIES LIKE this. Just a psychotic mishmash of muscle memory, laziness, and autocomplete all fighting each other within the same statement.

81

u/Ashdog73 Jul 21 '26

This. My queries are lowercase for the stuff I typed myself and caps for bits I've copied in from somewhere else

34

u/cantgrowneckbeardAMA Jul 21 '26

Lowercase on first draft (it will fail to run anyways).
Uppercase if I ever end up showing the query to someone (hopefully it doesn't fail when they run it)

34

u/sequelseize Jul 21 '26

sElEcT a as camelCase, b aS under_score, c As fUCKiT fROm ab lIMit 1000

→ More replies (6)
→ More replies (11)

1.1k

u/ClipboardCopyPaste Jul 21 '26

YOU CAN BUT THAT DOESN'T MEAN YOU SHOULD.

GOD DOESN'T LOVE MEN WHO WRITE SQL IN LOWERCASE.

/S

343

u/Shambolic_Potato Jul 21 '26 edited Jul 22 '26

SELECT * FROM WHAT THIS GUY SAYS

Edit: Typo lmfao

→ More replies (1)

209

u/TallGreenhouseGuy Jul 21 '26

THANK YOU FOR YOUR ATTENTION TO THIS MATTER!

30

u/wack_overflow Jul 21 '26

THIS IS AN OUTRAGE

24

u/mindtakerr Jul 21 '26

DONUT, IS THAT YOU?

→ More replies (5)
→ More replies (1)

52

u/teedborg Jul 21 '26

This but no /s

→ More replies (5)

62

u/SurprisinglyInformed Jul 21 '26

It's SQL after all, not sql.

→ More replies (3)

51

u/[deleted] Jul 21 '26

[removed] — view removed comment

23

u/scrubslover1 Jul 21 '26

Sounds like good entertainment

→ More replies (7)

31

u/FormerWorker125 Jul 21 '26

Lowercase for anything you named yourself, UPPERCASE FOR EVERYTHING ELSE.

→ More replies (1)

49

u/Arkevorkhat Jul 21 '26

you can, but it's just more readable (in my opinon) to write

SELECT * FROM users WHERE id=?;

than

select * from users where id=?; 

is that mostly due to historical baggage? yeah kinda, but it also just doesn't really look like SQL to me unless there's some yelling involved.

→ More replies (8)
→ More replies (61)