Home  >  Q&A  >  body text

mysql UPDATE 数据与目标数据相同 返回0

mysql 当UPDATE 数据与目标数据相同 返回0 那这样我确定他是因为其它错误还是因为数据相同更新不成功!

伊谢尔伦伊谢尔伦2743 days ago673

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 13:41:05

    This return value indicates the number of affected rows. If it is 0, it means that there is no data update, but the SQL statement is executed successfully. If there is an error, there will be an error value

    reply
    0
  • Cancelreply