Create, delete tables

Source: Internet
Author: User

//Create a tableCreate Table User(tutorial_idINT  not NULLauto_increment, Tutorial_titleVARCHAR( -) not NULL, Tutorial_authorVARCHAR( +) not NULL, submission_date date,PRIMARY KEY(tutorial_id)); Query OK,0Rows Affected (0.61sec)

//Create a banner tableCreate TableBanner (IDINT not NULLauto_increment, Img_urlvarchar(255) not NULL, Web_urltext not NULL, Addtimedatetime, PRIMARY KEY(ID));
//CREATE TABLE 3Create Table(' uid 'int( One) COMMENT'User ID', ' subject 'varchar( -)CHARACTER SETUtf8mb4DEFAULT NULLCOMMENT'Room title', ' Praise_num 'int( -)DEFAULT '0'COMMENT'To Click the number of likes', ' Gold_num 'int( -)DEFAULT '0'COMMENT'the number of shells received in this live', ' Watch_num 'int( One)DEFAULT '0'COMMENT'View Count', ' Review_url 'varchar( $) COLLATE Utf8mb4_unicode_ciDEFAULT NULLCOMMENT'Replay Address URL', ' Addtime 'timestamp NULL DEFAULT Current_timestampCOMMENT'creation Time', ' Endtime 'timestamp NULL DEFAULT NULLCOMMENT'End Time', PRIMARY KEY(UID));//Delete a tableDROP TABLE User;

Create, delete tables

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.