Reply
Old July 12th, 2011 Top | #1
 
Complete's Avatar
OSNN Addict
Joined: August 2005
Posts: 94
Reputation: 10
Power: 106

Default what is a tinyint in C#?

what is a tinyint in C#?
SQL has its own datatypes. But a small int in SQL translates to an Int16 in C#. But there is no such thing as Int8 in C#. So what is a tiny int in C#?
Complete is offline   Reply With Quote
Old October 17th, 2011 Top | #2
 
seo-marketing's Avatar
OSNN Junior Addict
Joined: July 2009
Location: INDIA
Posts: 5
Reputation: 0
Power: 59

Default Re: what is a tinyint in C#?

A TINYINT is an 8-bit integer value, a BIT field can store between 1 bit, BIT(1), and 64 bits, BIT(64). For a boolean values, BIT(1) is pretty common
seo-marketing is offline   Reply With Quote
Old October 24th, 2011 Top | #3
 
X-Istence's Avatar
*
Joined: December 2001
Location: USA
Posts: 6,498
Reputation: 2808
Power: 243

Default Re: what is a tinyint in C#?

Originally Posted by Complete View Post
what is a tinyint in C#?
SQL has its own datatypes. But a small int in SQL translates to an Int16 in C#. But there is no such thing as Int8 in C#. So what is a tiny int in C#?
In C# you can have a type named "byte" which is 8 bits wide:

Integral Types Table (C#)
X-Istence is offline   Reply With Quote
Old April 24th, 2012 Top | #4
 
stevejustine's Avatar
OSNN Junior Addict
Joined: April 2012
Location: Ahmedabad
Posts: 3
Reputation: 0
Power: 0

Default Re: what is a tinyint in C#?

The .NET Framework type System.Int16 is a short in C#. If you just need 8 bits, you can use byte (System.Byte).


Thanks.
Web Design
stevejustine is offline   Reply With Quote
Old October 29th, 2013 Top | #5
 
bestactor's Avatar
OSNN One Post Wonder
Joined: October 2013
Posts: 1
Reputation: 0
Power: 0

Default Re: what is a tinyint in C#?

I am a beginner in c and c++ and I find it pretty difficult as it mainly contains maths, and maths related counts. Is there any easy way to grasp the C. I am struggling too much here to cover this topics.





_____________________________________
Cure for Snoring
bestactor is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules