Data Sheet Basics

Source: Internet
Author: User

Data type:

Basic data types: Depending on how the data behaves and how it is stored, it can be divided into the following types

  1. Integer data type
  2. Currency data type
  3. Floating-point data types
  4. Date/Time Data type
  5. Character data type
  6. Binary data types
  7. Graphics and text data types

User-defined data types. Using a custom data type is not a true data type, and you can simplify the management of common rules and default values by working with custom data types.

Data integrity of the data table:

Data integrity means that every event in a column has the correct data value. Data values must have the correct data type, and the data values must be in the correct domain.

Referential integrity means that relationships between tables are properly maintained. The data in one table should only point to an existing row in another table and should not point to a row that does not exist.

SQL Server provides a variety of mechanisms for enforcing data integrity.

  1. NULL and non-null (NULL or NOT NULL)
  2. Defaults (default)
  3. Specific identity attributes (identity self-increment column)
  4. Constraints (5 constraints non-null check uniqueness PRIMARY key foreign key)

Data Sheet Basics

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.