Remix.run Logo
aurareturn 2 days ago

  DELETE FROM films;
I'm surprised databases makes it so easy to just delete an entire table. I think the command should be

  DELETE FROM films YES-I-KNOW-WHAT-I-AM-DOING;
magicalhippo 2 days ago | parent [-]

Agreed, I've long been thinking that DELETE should require a WHERE clause.

If you really want to just delete everything, just do WHERE 1=1.