ITeye博客

SQL Server的tinyint有个坑啊

swordinhand · 2014-01-17 11:42 · 数据库 · 数据库 · SQL Server · MySQL · tinyint · Markdown

  根据微软官方文档 http://technet.microsoft.com/zh-cn/library/ms187745.aspx,SQL Server支持bignt, int, smallint, tinyint这四种int,前三种都是有符号的,而tinyint却是无符号的,取值范围是0-255,而Mysql里面,tinyint默认是有符号的,取值范围是-128到127,unsigned tinyint才是0-255,如果在这两个数据库直接迁移表结构的话,就要注意了。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。