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 😃
48
Upvotes
View all comments
Show parent comment
1
u/KING5TON Jul 03 '26
What if you cannot touch the stored procedure? My point is that Cursors are not inherently bad. They wouldn't be an option otherwise. In some use cases you need to use them so if you interview someone and they use a Cursor don't automatically think they are incompetent, ask why they used one, might surprise you.