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
What is the equivalent SQL Server type for the C# long type?
提问by JanivZ
I'd like to know what the equivalent SQL Server type is for a long
in C#.
我想知道long
C# 中a 的等效 SQL Server 类型是什么。
采纳答案by Oded
The mapping tableis clear - BIGINT
is the equivalent of Int64
(which is long
in C#).
所述映射表是明确的-BIGINT
是相当于Int64
(这是long
在C#)。
回答by dasblinkenlight
The equivalent type is bigint
which is a 64-bit numeric type.
等效类型是bigint
64 位数字类型。
It fits numbers in the range from -2^63
to 2^63-1
which is the same as the C# long
type.
它适合于从所述范围内的数字-2^63
,以2^63-1
这是一样的C#long
类型。