SQL十进制相当于.NET

编程入门 行业动态 更新时间:2024-10-26 06:36:53
本文介绍了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

本文发布于:2023-11-08 13:28:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569498.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:SQL   十进制   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!