This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
当我尝试在 MYSQL 中运行“INSERT IGNORE ...”以仅将一个变量添加到包含多个选项的表中时,在第一次插入后,它拒绝工作。它说“插入的行:0”并且没有将我的新值插入数据库。我相信这是因为已经有一个“无”值的条目,而 MYSQL 不允许复制空字段。这似乎是一种奇怪的行为(只要两个插入不完全相同),所以我想知道是否有某种方法可以避免这种情况。