SQL statements linked by province, city, and county levels

Source: Internet
Author: User
No CREATETABLE 't_ address_province '('id' INTAUTO _ INCREMENTPRIMARYKEYCOMMENT primary key, 'code' CHAR (6) NOTNULLCOMMENT provincial code, 'name' VARCHAR (40) NOTNULLCOMMENT province name) ENGINEInnoDBDEFAULTCHARSETUTF8C

No create table 't_ address_province '('id' INT AUTO_INCREMENT primary key comment 'Primary key', 'code' CHAR (6) not null comment 'province Code', 'name' VARCHAR (40) not null comment' province name') ENGINE = InnoDB default charset = UTF8 C

SQL statements linked by province, city, and county levels <无>
Create table 't_ address_province '('id' INT AUTO_INCREMENT primary key comment 'Primary key', 'code' CHAR (6) not null comment 'province Code ', 'name' VARCHAR (40) not null comment' province name') ENGINE = InnoDB default charset = UTF8 COMMENT = 'province info table '; create table 't_ address_city '('id' INT AUTO_INCREMENT primary key comment 'Primary key', 'code' CHAR (6) not null comment 'city Code ', 'name' VARCHAR (40) not null comment 'city name', 'vincecode' CHAR (6) not null comment' province Code ') ENGINE = InnoDB default charset = UTF8 COMMENT = 'city info TABLE '; create table 't_ address_town' ('id' INT AUTO_INCREMENT primary key comment 'Primary key ', 'code' CHAR (6) not null comment 'area/county Code', 'name' VARCHAR (40) not null comment 'area/county name', 'citycode' CHAR (6) not null comment 'city Code') ENGINE = InnoDB default charset = UTF8 COMMENT = 'District/county info table ';

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.