SQL十进制相当于.NET [英] SQL decimal equivalent in .NET

查看:139
本文介绍了SQL十进制相当于.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是 SQL (MS SQL Server)的十进制相当于 .NET

What is the SQL (MS SQL Server) Decimal equivalent in .NET?

它应该是双击十进制浮动在VB.NET)?

Should it be Double, Decimal or Float (Single in VB.NET)?

推荐答案

有没有的确切的同等类型在.NET中,像SQL的十进制类型是固定的点,而.NET的 System.Decimal 类型为浮动(十进制)点类型。

There's no exact equivalent type in .NET, as SQL's decimal type is fixed point, whereas .NET's System.Decimal type is a floating (decimal) point type.

不过, System.Decimal 绝对是最接近的匹配,一般应获得用于重新present存储在一个十进制列在SQL数据库中的值

However, System.Decimal is definitely the closest match, and should generally be what's used to represent the value stored in a decimal column in a SQL database.

这篇关于SQL十进制相当于.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆