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.
我有一个 MySQL 表,其中有一列“A”,其中包含 NaN 值。你如何更新它们?我努力了
update myTable set A = 0 where A is NaN;
但它给了我一个语法错误。如何查询 NaN?
您应该能够使用以下其中一项:
update myTable set A = 0 where A = 'NaN';
或者
update myTable set A = 0 where A LIKE '%NaN%';
尝试
尝试:
update myTable set A = '0' where A = 'NaN'