Mysql engine _ MySQL-mysql tutorial

Source: Internet
Author: User
Tags mysql tutorial
Mysql engine InnoDB is a mysql table that provides transaction security, rollback, crash repair capabilities, and multi-version concurrency control.

MyIsAm storage engine is a common storage engine in Mysql.

All data of the Memory storage engine is stored in the Memory. High speed, but low security.

Default-character-set = utf8

Character-set-server = utf8

Set the table's primary key:

Single primary key

1. primary key

Multiple primary keys

2. primary key (one, two)

Set the foreign key of the table

Contraint foreign key alias foreign key (one, two, three ....) References table name (one, two, three)

The former and the latter types must be consistent, and the latter must be the primary key.

Set non-empty table constraints

Not null

Null

Set unique table constraints

Unique

Set Table attributes to automatically add

Auto_increment

Set the default value of the table attribute

Default "dd"

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.