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
-
Fradow9086yFriendly tip, as soon as you write "update", write the "where" BEFORE the table name, so that if you commit/execute it partway, it will just fail because of a syntax error instead of wiping a table.
-
I've shared one rant before similar to this. In that case instead of me my boss did that for "password" column and in the midnight I had to send all users an email stating due to security reason we have reset your password.
-
Condor323326y@billgates is that why people often seem to like MySQL/MariaDB over MS SQL Server? :P
-
donuts236726y@Condor well if you want to get technical... MS SQL supports it too like most DBs. I believe its called transactions
Or the feature can be just an option on the SQL Client, like Production mode. Basically like a confirmation box. -
Condor323326y@billgates I have barely any experience with databases, much less MS SQL.. so please, no :')
Interesting to learn about this though!
Ran update query on 1m+ record without where clause. Thank god I missed the commit command or else today would have been my last day.
rant