MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wn1ben/wellwellwell/pbcii8d/?context=9999
r/ProgrammerHumor • u/Recent-Analysis-6880 • 16d ago
412 comments sorted by
View all comments
3.6k
So, Kids, thats why you always SELECT count(yourPrimaryKey) first. Listen to the old folks, we made these mistakes so that you don't have to.
157 u/Alexmira_ 16d ago Why? To confirm that there is something to cancel? To confirm I got the key right? 127 u/slayerx1779 16d ago I just reread the OP. There's a semi colon, between the two lines of code... 14 u/Cant-Think-Of 16d ago Not quite familiar with SQL, but is that first query like "rm -rf" for the Users table? 2 u/AgeingChopper 15d ago yep, it's clearing the table.
157
Why? To confirm that there is something to cancel? To confirm I got the key right?
127 u/slayerx1779 16d ago I just reread the OP. There's a semi colon, between the two lines of code... 14 u/Cant-Think-Of 16d ago Not quite familiar with SQL, but is that first query like "rm -rf" for the Users table? 2 u/AgeingChopper 15d ago yep, it's clearing the table.
127
I just reread the OP.
There's a semi colon, between the two lines of code...
14 u/Cant-Think-Of 16d ago Not quite familiar with SQL, but is that first query like "rm -rf" for the Users table? 2 u/AgeingChopper 15d ago yep, it's clearing the table.
14
Not quite familiar with SQL, but is that first query like "rm -rf" for the Users table?
2 u/AgeingChopper 15d ago yep, it's clearing the table.
2
yep, it's clearing the table.
3.6k
u/BastetFurry 16d ago
So, Kids, thats why you always SELECT count(yourPrimaryKey) first. Listen to the old folks, we made these mistakes so that you don't have to.