为什么在 UPDATE SET 中使用 AND 关键字时 MySQL 不抛出错误

Why doesn't MySQL throw an error when AND keywords are used in an UPDATE SET

不正确的语法(第一个查询)似乎没有在 MySQL 中抛出错误,即使它显然是错误的。这是为什么?

这是不正确的语法

UPDATE 
    ATable
SET
    AColumn = '' AND
    BColumn = '' AND
    CColumn = ''
WHERE
    IDColumn = '';

这是正确的语法

UPDATE 
    ATable
SET
    AColumn = '',
    BColumn = '',
    CColumn = ''
WHERE
    IDColumn = '';

UPDATE Statement not generating syntax error when using AND instead of COMMA

这个问题在那里得到了回答。

SET NAME = '123' AND Address = '456'

is parsed to something like:

SET NAME = ('123' AND (Address = '456'))

which is one comparison and boolean AND of a string and boolean operands.