Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Internships: What is the most catastrophic mistake made by an intern at a company?

Internships: What is the most Catastrophic Mistake made by an intern at a company? by Dan Ray

Answer by Dan Ray:

I sat at the MySQL console for the production web application database and typed:

DELETE FROM tablename WHERE id - 1234;

…and hit return.

Note that I typed id - 1234, not id = 1234.

In MySQL the statement (value - value) is false if it evaluates to 0, and true if it evaluates to anything else. I just asked the database to delete all rows where the ID minus 1234 was not zero.

It replied "80,000 rows deleted".

Internships: What is the most Catastrophic mistake made by an intern at a company?



This post first appeared on Best Of Quora, please read the originial post: here

Share the post

Internships: What is the most catastrophic mistake made by an intern at a company?

×

Subscribe to Best Of Quora

Get updates delivered right to your inbox!

Thank you for your subscription

×