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
-
AlexAC53756yNot very efficient, 1=1 will lead to a full table scan and depending on the number of rows it can take a while. "TRUNCATE TABLE employees;" is a lot faster :)
-
I remember that when a company/hr talks about being a family and shit, remember it's like telling a prostitute you love them.
-
Lvh1356y@sudo-rm-rf it should but some databases throw an error by default when executing a delete statement without where clause, as a safety measure I suppose.
-
gruff5526yTruncate is also quicker because it doesn’t write to the redo log and can’t be rolled back
Related Rants
HR: Sorry, we're a family here but we have to let you go.
Engineer: Okay.
The End.
----
*DELETE FROM employees WHERE 1=1;*
rant
job
mysql
hr
career
database
admin