Recent. NET learning and project development-Data Types in SQLSERVER and data classes in C #

Source: Internet
Author: User
General correspondence bool-System.Bollean (Boolean, true or false) char-System.Char (bytes, occupies two bytes, represents a unicode character) byte-System.Byte (byte, occupies 1 byte, represents an 8-digit positive integer in the range of 0 ~ 255) sbyte-System.Sbyte (signed byte type

General ing relationship bool-> System. bollean (Boolean, true or false) char-> System. char (Bytes type, occupies two bytes, indicating 1 unicode character) byte-> System. byte (in bytes, 1 Byte, representing an eight-digit positive integer in the range of 0 ~ 255) sbyte-> System. Sbyte (signed byte type

AverageCorrespondingLink

Bool-> System. Bollean (Boolean, value: true or false)
Char-> System. Char (Bytes type, occupies two bytes, indicating 1 unicode character)
Byte-> System. Byte (byte, which occupies 1 Byte, indicates an eight-digit positive integer, ranging from 0 ~ 255)
Sbyte-> System. Sbyte (in byte notation, which occupies 1 byte, indicates an 8-digit integer, range:-128 ~ 127)
Ushort-> System. Uint16 (unsigned short integer, which occupies 2 bytes and represents a 16-bit positive integer in the range of 0 ~ 65,535)
Unit-> System. Uint32 (unsigned integer, 4 bytes, representing a 32-bit positive integer, range ?? 0 ~ 4,294,967,295)
Ulong-> System. Uint64 (unsigned integer, which occupies 8 bytes, indicates a 64-bit positive integer, ranging from 0 ~ About 10 times)
Short-> System. Int16 (short integer, which occupies 2 bytes, indicates a 16-bit integer, range:-32,768 ~ 32767)
Int-> System. Int32 (integer, 4 bytes, representing a 32-bit integer, ranging from-2,147,483,649 to 2,147,483,467)
Long-> System. Int64 (an integer of 8 bytes, representing a 64-bit integer. The value range is about-(19 of 10) to the 19th power of 10)
Float-> System. Sigle (single-precision floating point, 4 bytes)
Double-> System. Double (double-precision floating point type, 8 bytes)

?

Candh uses this tinyintTypeRepresents a number between 0 and 255? (Used to store something similar to a Status field)

This tinyint is used in the zp_status status.TypeRepresents a number between 0 and 255?CorrespondingBYTE in C #Type

?

Bigint

-2 ^ 63 (-9,223,372,036,854,775,808) to 2 ^ 63-1 (9,223,372,036,854,775,807)

8 bytes

Int

-2 ^ 31 (-2,147,483,648) to 2 ^ 31-1 (2,147,483,647)

4 bytes

Smallint

-2 ^ 15 (-32,768) to 2 ^ 15-1 (32,767)

2 bytes

Tinyint

0 to 255

1 byte

?

Single is FLOATType

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.