Maison  >  Questions et réponses  >  le corps du texte

mysql 5.5 BIGINT UNSIGNED value is out of range?mysql 5.6有这个问题吗?

百度之后说:

mysql处理两个整数(INT)相减的时候,如果其中有一个是UNSIGNED INT类型的,那么结果就被当做是UNSIGNED的。

伊谢尔伦伊谢尔伦2728 Il y a quelques jours758

répondre à tous(1)je répondrai

  • 阿神

    阿神2017-04-17 15:31:20

    如果相减后的结果是负数,就会out of range,因为你的类型是无符合整数,比如大于等于0。这个所有版本应该都一样,是原则问题

    répondre
    0
  • Annulerrépondre