PHP Hercules [023 section]create table creating a new table SQL write notes (2015-08-27)

Source: Internet
Author: User

2015-08-27 PHP Force 023. CREATE table creates a new table SQL writing note

Http://www.cnblogs.com/dalitongxue/p/4762182.html

Reference:

Description and comment information for the MySQL field

http://blog.csdn.net/chelen_jak/article/details/45689139

DROP TABLE IF EXISTStest_table; CREATE TABLEtest_table (test_idint  not NULLAuto_incrementPRIMARY KEYCOMMENT'primary KEY (self-growth)', Test_keyvarchar(Ten) not NULLCOMMENT'type', Test_valuevarchar( -) not NULLCOMMENT'value', Test_typeint  not NULLCOMMENT'Internal Type', Test_belongtointCOMMENT'Subordinate Relationship', Test_gradeint DEFAULT 1COMMENT'level', Test_remarkvarchar( -) COMMENT'Notes', Test_visiblebit DEFAULT 1COMMENT'is visible'  )

CREATE Table writes notes, neither

Remark varchar (200)//Notes

It's not

Remark varchar (+) DESC remarks

It's not

Remark varchar (COMMENT) Notes

It's not

Remark varchar (COMMENT ' remarks ')

But
Remark varchar (COMMENT) ' remarks ';

Of course, the last field does not have a comma behind it.

On this matter, also toss half a day. Whining

Used to be, now forget. Ha ha

2015-08-27 PHP Force 023. CREATE table creates a new table SQL writing note

PHP Hercules [023 section]create table creating a new table SQL write notes (2015-08-27)

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.