News for hackers. Stuff that matters.
Re:An UPDATE without a WHERE, or something close to it by dragonwriter on Friday October 29, 2021 @10:27PM (#29045472)
> A particularly nasty aspect of SQL UPDATE syntax is the predicate order, i.e. SET is before WHERE. So when you type it in order, there's a dangerous phase you have to go through if you hit enter by accident.

Well, dangerous if you are using a simple terminal interface and not using a transaction when doing updates. The latter is generally a bad idea even if you aren't also doing the former.

There are no comments on this comment yet.