r/SQL • u/badboyzpwns • May 20 '26
PostgreSQL What are common SQL red flags?
Hello! interview prepping, here wondering what are some common red flags for wrioting SQL?
Like
LIKE failing to index, not having trasnactions, usign SELECT * instead of specific collums, etc 😃
50
Upvotes
View all comments
Show parent comment
49
u/MakeoutPoint May 20 '26
Even without SQL, programmers who do this with any variable outside of the i in a for loop, then leave that legacy psychosis behind for someone else, can die in a hole. Or be forced to debug their old code 10 years later, for eternity, either works.