Skip to content

Comment on 6pm.com's 1.6 million dollar pricing mistakeparent

Comments

That is why I run a ls command before doing rm. (been bitten but accidentally hitting Return key instead of Shift on laptop :()

Also for Update/Delete query I run the equivalent select (rows or count(*) ) query first, just to make sure.

also make sure to write where predicate before completing the whole sql. (The sql does not go through by accidentally hitting enter, before the whole statement is written)

tl;dr - Run read operation before doing write/update/delete operations.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.