To create a new database, you need to pay attention to the place __ database

Source: Internet
Author: User

Create a new database, build a table where you need attention

Build a table and build a database note:

1, Character set: Select GBK, or Utf-8
2, the database name is case-sensitive
3, the table name is strictly case-sensitive, generally with ' t_ ' beginning, words can be tried ' _ ' separated
4, the field name is not case-sensitive, the word can be tried between ' _ ' separated
5, the primary key uses the self-increasing mode
6, Database engine use: InnoDB (Support transaction)
7, PRIMARY KEY constraint, non-empty constraint, index, field name, field type, field initialization, field description;
(Note: The association between tables is implemented in code, do not CREATE TABLE foreign KEY constraints)
8, field settings commonly used type (field names do not match the keyword):
tinyint (4);
int (11);
varchar (20);
DateTime
Text
Decimal (M,n)

Related Article

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.