Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
My advice is always: build as select in the first place and check result. Then replace the select. Not that I follow that rule 😂
-
encore7787y@danzig666 that's good advice
I also got into the habit of writing queries in reverse. WHERE & LIMIT come first. Now it's second nature -
spacem18447yIn sqlserver usually I type Begin transaction before any ad-hoc update operations on prod, then I test it, if it works I type commit
Sometimes I forget the commit and lock up the database all day haha -
-
Happened to me once. I had chance that the IT guy made a backup right before I started.
-
I am safe guys... No-one knows....
Luckily my query was just after the cron backups that are scheduled every month....
I was hairline close to being fired for loosing one month's data...
PS-Please don't tell my lead about this, nobody knows... ^_^
Related Rants
-
droidshere3Note to self : when a client say "we want to develop 'exact clone' of SomeFuckingBigCompany" - Say NO.
-
Frosty17I am fucked.... 😫😫😫My new custom build pc is not starting up after lighting strike ðŸ˜ðŸ˜ ... I had...
-
owithg0My boss told me(less than a year experience) I am the project lead now.... Makes me nervous that 10 minutes ag...
Forgot to add a WHERE clause in my UPDATE query for Prod DB, that contained 100K+ Records.
FML
rant
i am fucked