MySQL build table statement, MySQL build table statement _php Tutorial

Source: Internet
Author: User

MySQL build table statement, MySQL build table statement


1 DROP TABLE IF EXISTS' NuVue ';2 3 CREATE TABLE' NuVue ' (4' ID 'INT(Ten) UNSIGNED not NULLAuto_increment,5' Status 'TINYINT(2) UNSIGNED not NULL DEFAULT 0COMMENT'Status',6' UID 'INT(Ten) UNSIGNED not NULLCOMMENT'Create user',7' province_id 'TINYINT(3) UNSIGNED not NULLCOMMENT'first-class city',8' city_id 'TINYINT(3) UNSIGNED not NULLCOMMENT'Level Two area',9' Name 'VARCHAR( -) not NULLCOMMENT'Site name',Ten' Logo_url 'VARCHAR( -) not NULLCOMMENT'Site Logo', One' Location_address 'VARCHAR( $) not NULLCOMMENT'Venue Address', A' Location_point 'VARCHAR( -) not NULLCOMMENT'site coordinates', -' Caoncat_phone 'VARCHAR( -) not NULLCOMMENT'Contact Phone', -' Type ' ENUM ('Livehouse','Theare','Bar','Bookshop',' Other') not NULLCOMMENT'Venue Type', the' Phone 'VARCHAR( -) not NULLCOMMENT'Venue Phone', -' Area 'VARCHAR(Ten) not NULLCOMMENT'Site Area', -' People 'VARCHAR(Ten) not NULLCOMMENT'Number of seats', -' Device 'VARCHAR( -) not NULL DEFAULT ''COMMENT'Site Equipment', +' Introduction 'VARCHAR( -) not NULL DEFAULT ''COMMENT'Venue Introduction', -' Create_at 'DATETIME  not NULLCOMMENT'creation Time', +     PRIMARY KEY' id ' (' id '), A     UNIQUE KEY' name ' (' name '), at     KEY' Idx_type ' (' type '), -     KEY' idx_uid ' (' uid '), -     KEY' Idx_status ' (' status '), -     KEY' idx_location ' (' province_id ', ' city_id ') -) ENGINE=MyisamDEFAULTCHARSET=UTF8;

http://www.bkjia.com/PHPjc/922303.html www.bkjia.com true http://www.bkjia.com/PHPjc/922303.html techarticle a MySQL Build table statement, MySQL build table statement 1 DROP table IF EXISTS ' NuVue '; 2 3 CREATE table ' NuVue ' (4 ' id ' INT ') UNSIGNED not NULL Auto_increment, 5 ' status ' TINYINT (2) ...

  • 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.