什么是BIGINT在C#中的相同呢? [英] What is the equivalent of bigint in C#?

查看:1810
本文介绍了什么是BIGINT在C#中的相同呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该怎么处理在C#中,这是BIGINT一个SQL&NBSP值时使用; Server数据库

What I am supposed to use when handling a value in C#, which is bigint for an SQL Server database?

推荐答案

这对应到(或的Int64 ),一个64位整数。

That corresponds to the long (or Int64), a 64-bit integer.

虽然如果从数据库的数量恰好足够小,而你不小心用一个Int32,等等,你会没事的。但在的Int64 一定会抓住。

Although if the number from the database happens to be small enough, and you accidentally use an Int32, etc., you'll be fine. But the Int64 will definitely hold it.

和错误你得到,如果你使用的东西更小,并且全尺寸的需要? 堆栈溢出!耶!

And the error you get if you use something smaller and the full size is needed? A stack overflow! Yay!

这篇关于什么是BIGINT在C#中的相同呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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