3 ms·
That's good advice in general, not just for SQL. For example, I often write my 'rm' commands as 'ls' at first and then swap out the command once I know it gets
by amyjess 9y ago
That's good advice in general, not just for SQL.
For example, I often write my 'rm' commands as 'ls' at first and then swap out the command once I know it gets the right thing.
- fapjacks 9y agoYes, I learned this from a sysadmin in the early 90s and did this when learning to use Unix and having used the technique in various other contexts (e.g. database DELETEs), I am confident this one weird trick has saved me from catastrophic mistakes countless times.
- reddit_clone 9y agoYep. I do that too. Along the same lines I always do an 'echo' before I 'find -exec' anything.
- hinkley 9y agoI count to five before hitting enter. I have stopped on 3 or 4 a number of times. 5 seconds is frequently enough time for your brain to catch up with your fingers. And nobody is going to notice it took you 15 seconds to do something instead of 10.