对phpmyadmin中的查询模拟感到困惑

时间:2019-04-15 18:26:22

标签: phpmyadmin simulate

在phpmyadmin中运行更新查询之前,我通常会运行Simulate选项来测试我的查询。但是我遇到了这个难题。

Select count(*) from `table1` where field1 is null

-给了我3000条记录。

Update `table1` set field1 = field2 where field1 is null

-模拟说158条记录

两个字段都是文本类型,并且field2在每个记录中都有内容。 为什么会得到不同的结果? (将来我会尝试使用事务/输出/回滚。)

0 个答案:

没有答案
相关问题