wpf连接mysql,更新数据报错:UpdateCommand 影响了预期 1 条记录中的 0 条。

最近在写一个功能,从数据库中读取两张图片,用两种算法进行打分并存入数据库。
第一次调用这个功能(此时分数为null),可以完美运行,将分数存入数据库,
然而第二次调用(此时把算法部分的代码修改了),就会报错。(如果不修改算法部分的代码就不会报错)

试了很多种方法,之前主键是设为自增的,现在都改成了uuid(),但是还是不行。

顺便贴上代码,求大神帮助!!

             MySqlConnection conn1 = new MySqlConnection("Database='test1';DataSource='localhost';UserId='root';Password='123456'");
            conn1.Open();

            string cmdString1 = "SELECT no, blob1, blob2, score1, score2 from pictures";
            MySqlCommand cmd1 = new MySqlCommand(cmdString1, conn1);
            MySqlDataAdapter adapter1 = new MySqlDataAdapter(cmd1);

            MySqlCommandBuilder sqlBulider1 = new MySqlCommandBuilder(adapter1);
            DataSet ds1 = new DataSet();
            adapter1.Fill(ds1);
            DataTable table1 = ds1.Tables[0];
            for (int i = 0; i< table1.Rows.Count; i++)
            {
                byte[] buffer1 = (byte[])table1.Rows[i][1];
                byte[] buffer2 = (byte[])table1.Rows[i][2];
                float score1 = 0,score2 = 0;

                //打分方法1
                                score1=1
                //打分方法2
                                score2 = 0.5

                table1.Rows[i][3] = score1;
                table1.Rows[i][4] = score2;
            }

            adapter1.Update(ds1);
                        conn1.Close();

就在倒数第二行update语句处报错...

唉,真的好奇怪...