Chrishan Ran Jayakody
48 minutes ago near Colombo, Sri Lanka
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".
The 16 Biggest Tech Intern Fails via Business Insider
Like · · Share
3 people like this.
Source FB
48 minutes ago near Colombo, Sri Lanka
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".
The 16 Biggest Tech Intern Fails via Business Insider
Like · · Share
3 people like this.
Source FB

ehemada ela ela.u mage honda friend kenek 



mama nam kalinma backup ekak aragenai wedeta bahinne. karapu tikata kela unath kalin thibba point ekata hari badu have ne.