10
Nojil
7y

Accidentally using a MySQL update and not specifying the where....yeah needless to say every single dB record got updated to trash data and the DB wasn't backed up....I was a brand new developer so....

Comments
  • 2
    I still get nervous that I will do this so I usually write the where clause first.
  • 2
    Happened to me once, now i do a select first to see which data will be updated, with their old and new values

    It takes time, a shitton of time
  • 4
    That's my biggest fear when working SQL. And locking a high traffic table. Oh lawd
  • 1
    Been there... not funny at all. That's why I first run my scripts on dummy datasets.
Add Comment