类型别名和自定义类型区别 自定义类型 //自定义类型是定义了一个全新的类型 //将MyInt定义为int类型 type MyInt int 类型别名 //类型别名规定:TypeAlias只是Type的别名,本质上TypeAlias与Type是同一个类型. type TypeAlias = Type type byte = uint8 type rune = int32 区别 类型别名与类型定义表面上看只有一个等号的差异 //类型定义 type NewInt int //类型别名 type MyI
--排序 select Row_Number() over(order by a.UserName) as Num --区分性别 then '男' else '女' end SexName Sqlserver中tinyint, smallint, int, bigint的区别 bigint:从-2^63(-9223372036854775808)到2^63-1(9223372036854775807)的整型数据,存储大小为 8 个字节.一个字节就是8位,那么bigint就有64位 int:从-2