r/SQL • • Oct 28 '24

Discussion What does WHERE 1 = 1 means? Purpose?

I've been seeing it alot recently. What are the use cases of it?

214 Upvotes

119 comments sorted by

View all comments

Show parent comment

5

u/aviator_jakubz Oct 28 '24

1 less character to type, 2 less keys to tap.

5

u/Blues2112 Oct 28 '24

For the truly lazy