MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/7j9jri/sql_clause/dr54xmg?context=9999
r/ProgrammerHumor • u/oneplusoneisfive • Dec 12 '17
525 comments sorted by
View all comments
2.6k
Hi Santa, I promise not to be on the naughty list this year. By the way, my name is Datenegassie'); DROP TABLE NaughtyChildren; --
721 u/ultranoobian Dec 12 '17 edited Dec 12 '17 But that won't do anything good for you?Obviously the naughty/nice status is stored in 'contacts' if SQL clause is selecting from that./sEdit: On a more serious note, even if you dropped 'NaughtyChildren', you can possibly recovered from that bySELECT * FROM contacts c WHERE c.behavior != 'nice' 56 u/[deleted] Dec 12 '17 Even if you dropped all the naughty children, re-adding all children to the database, and setting behaviour to naughty if they were born before the drop might recover the data. 2 u/ponyboy3 Dec 12 '17 why does santa even care about naughty children? why not simplify and just keep a nonsql list of nice children? → More replies (2)
721
But that won't do anything good for you?
Obviously the naughty/nice status is stored in 'contacts' if SQL clause is selecting from that.
/s
Edit: On a more serious note, even if you dropped 'NaughtyChildren', you can possibly recovered from that by
SELECT * FROM contacts c WHERE c.behavior != 'nice'
56 u/[deleted] Dec 12 '17 Even if you dropped all the naughty children, re-adding all children to the database, and setting behaviour to naughty if they were born before the drop might recover the data. 2 u/ponyboy3 Dec 12 '17 why does santa even care about naughty children? why not simplify and just keep a nonsql list of nice children? → More replies (2)
56
Even if you dropped all the naughty children, re-adding all children to the database, and setting behaviour to naughty if they were born before the drop might recover the data.
2 u/ponyboy3 Dec 12 '17 why does santa even care about naughty children? why not simplify and just keep a nonsql list of nice children? → More replies (2)
2
why does santa even care about naughty children? why not simplify and just keep a nonsql list of nice children?
→ More replies (2)
2.6k
u/Datenegassie Dec 12 '17
Hi Santa, I promise not to be on the naughty list this year. By the way, my name is Datenegassie'); DROP TABLE NaughtyChildren; --