what is a tinyint in C#?

Discussion in 'Web Design & Coding' started by Complete, Jul 12, 2011.

  1. Complete

    Complete OSNN Addict

    Messages:
    94
    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#?
     
  2. seo-marketing

    seo-marketing OSNN One Post Wonder

    Messages:
    5
    Location:
    INDIA
    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
     
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    In C# you can have a type named "byte" which is 8 bits wide:

    Integral Types Table (C#)
     
  4. stevejustine

    stevejustine OSNN One Post Wonder

    Messages:
    3
    Location:
    Ahmedabad
    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
     
  5. bestactor

    bestactor OSNN One Post Wonder

    Messages:
    1
    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