• cashews_winBanned
    link
    fedilink
    English
    arrow-up
    17
    ·
    2 years ago

    “I didn’t put a WHERE clause in that DELETE statement”

    • EmasXP
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 years ago

      As a side note, DBeaver actually asks for confirmation if it thinks you are about to do something wonky. I think it’s quite telling just how common this mistake is. We’ve all been there

      • marcos
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        Update and delete should require a where clause. You can always use true or 1 = 1, the gain from omitting it is minimal.

        The fact that no DBMS ever decided to implement this, not even as an option is quite distressing.