C# long 类型的等效 SQL Server 类型是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14197162/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 11:02:10  来源:igfitidea点击:

What is the equivalent SQL Server type for the C# long type?

c#sql-server

提问by JanivZ

I'd like to know what the equivalent SQL Server type is for a longin C#.

我想知道longC# 中a 的等效 SQL Server 类型是什么。

采纳答案by Oded

The mapping tableis clear - BIGINTis the equivalent of Int64(which is longin C#).

所述映射表是明确的-BIGINT是相当于Int64(这是long在C#)。

回答by dasblinkenlight

The equivalent type is bigintwhich is a 64-bit numeric type.

等效类型是bigint64 位数字类型。

It fits numbers in the range from -2^63to 2^63-1which is the same as the C# longtype.

它适合于从所述范围内的数字-2^63,以2^63-1这是一样的C#long类型