mysql--Data integrity

Source: Internet
Author: User
-Data type principle try to use a small range of values to save storage space integer: int, bit decimal: decimal denotes floating-point number decimal (5, 2) a total of 5 digits, and decimals is a 2-bit string: varchar (variable-length string), char (fixed-length string) date Room: Date, Time, datetime enum type (enum) attached: string text means storing large text, characters greater than 4000 recommended for picture Audio video and other large files, not stored in the database-constrained primary key: Primary key physically stored in order Non-null: The unique field does not allow duplicate defaults: default does not fill in defaults, fill in to fill in as the quasi foreign key: FOREIGN key FOREIGN KEY constraint can guarantee data validity, but in the data additions and deletions to reduce the performance of the database, is not recommended to use

mysql--Data integrity

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.