SQL Server的numeric, float and decimal区别

https://stackoverflow.com/questions/1056323/difference-between-numeric-float-and-decimal-in-sql-server
1.一般使用decimal,除非其精度不满足要求,才使用float和real。decimal的最大精度为38。
2.不要在where条件查询语句中进行float或者real列的比较,尤其要避免在=或<>比较条件中操作float或real列

猜你喜欢

转载自blog.csdn.net/u010178308/article/details/88303179
今日推荐