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 😃
51
Upvotes
View all comments
Show parent comment
3
u/GunnerMcGrath May 21 '26
I have never once run into a situation where a cursor was actually necessary. Even in giant, complicated procedures there has always been a way to restructure them as normal queries. Am I an above average SQL user? Almost definitely. But I got that way in part by never using cursors.