Re:An UPDATE without a WHERE, or something close to it
by zimpenfish on Friday October 29, 2021 @04:03PM
(#29042954)
> A particularly nasty aspect of SQL UPDATE syntax is the predicate order, i.e. SET is before WHERE.
Given the annoyance of this and its ability to really, really ruin your day, I don't know why someone hasn't updated their parser to allow 'update X where [cond] set [blah]' as an alternate phrasing.
Given the annoyance of this and its ability to really, really ruin your day, I don't know why someone hasn't updated their parser to allow 'update X where [cond] set [blah]' as an alternate phrasing.