r/shittyprogramming • • Nov 30 '18

Unbeatable protection from SQL injection.

Just don't name your table "users" so when they do the "DROP TABLE users;" it doesn't work.

143 Upvotes

18 comments sorted by

View all comments

Show parent comment

7

u/Rabbyte808 Dec 01 '18

But what if someone wants to have "table" in their username?

23

u/thehalfwit Dec 01 '18

We automatically change it to "Mable".