SqlServer数据库迁移至MySql注意点——

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xyc_csdn/article/details/82793588

先看区别

  • SqlServer
    tinyint:范围(0,255),存储大小为 1 字节
  • MySql
    tinyint:有符号范围 ~ (-128,127),无符号范围 ~ (0,255),存储大小为 1 字节

故当SqlServer表中含有Tinyint类型字段时,迁入到MySql需要将字段的无符号选择勾上,否则取值范围不一致(除非你的取值可以保证在(0,127)之内)

猜你喜欢

转载自blog.csdn.net/xyc_csdn/article/details/82793588