Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 SQL 更新出了什么问题?我正在尝试使用即将到来的状态记录值更新记录,其值为missed & due_date BETWEEN 2020-08-01 AND 2020-12-31。
语法错误在哪里?
UPDATE records SET status = upcoming, WHERE status = ‘ missed ’ & due_date BETWEEN 2020 -08 -01 AND 2020 -12 -31 ;
我认为这应该写成:
UPDATE records SET status = 'upcoming' WHERE status = 'missed' AND due_date BETWEEN '2020-08-01' AND '2020-12-31';
笔记:
AND
&