blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
133
path
stringlengths
3
276
src_encoding
stringclasses
33 values
length_bytes
int64
23
9.61M
score
float64
2.52
5.28
int_score
int64
3
5
detected_licenses
listlengths
0
44
license_type
stringclasses
2 values
text
stringlengths
23
9.43M
download_success
bool
1 class
720bad68dc06be38e97ff623be9891b521ea863c
SQL
zhuoliu0920/database-systems
/Project2/phase2/zhuo_update/query.sql
UTF-8
284
3.015625
3
[]
no_license
CREATE RECURSIVE VIEW R ( DD , a , b , pp , value ) AS ( SELECT 1 , a , b , 1 , value FROM graph UNION ALL SELECT DD + 1 , R . a , R . b , R . pp * graph . pp , R . s + graph . s FROM R JOIN graph ON R . b = graph . a WHERE DD < 10 ) ; SELECT DISTINCT a , b , DD INTO O FROM R;
true
d9220181b9f76f4ff7dfb9e3912ad839ea904161
SQL
tinased95/Database
/zahra_Athari_9331027_Tina_Sedaghat_9331044/phase 2/queries/q15.sql
UTF-8
836
3.125
3
[]
no_license
use OnlineShopping1; select person.PersonName as 'registered Customer name' , person.PersonFamilyName as 'registered Customer lastname' , RegisteredCostumerUsernames.CostumerUsername as 'registeredCustomer username' from person , RegisteredCostumerUsernames,boughtDetail,bought where person.personID=RegisteredCostumerUsernames.CostumerID and RegisteredCostumerUsernames.CostumerID=bought.costumerID and bought.boughtID=boughtDetail.boughtID and boughtDetail.utilityID='12' ; select person.PersonName as 'unregistered Customer name' , person.PersonFamilyName as 'unregistered Customer lastname' from person , unRegisteredCostumer,boughtDetail,bought where person.personID=unRegisteredCostumer.CostumerID and unRegisteredCostumer.CostumerID=bought.costumerID and bought.boughtID=boughtDetail.boughtID and boughtDetail.utilityID='12'
true
a00765f80d7ef2e4e25ace186496e730fce3a6b6
SQL
Karanveer-1/Time-entry-system
/Resources/timesheet.sql
UTF-8
7,014
3.84375
4
[]
no_license
CREATE DATABASE TES; CREATE USER 'employee'@'localhost' IDENTIFIED BY 'password'; CREATE USER 'employee'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON TES.* TO 'employee'@'localhost' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON TES.* TO 'employee'@'%' WITH GRANT OPTION; USE TES; -- create table CREDENTIALS CREATE TABLE TES.CREDENTIALS ( EMPLOYEE_USERNAME VARCHAR(15) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, EMPLOYEE_PASSWORD VARCHAR(50) NOT NULL, PRIMARY KEY(EMPLOYEE_USERNAME) ); -- CREATE TABLE EMPLOYEE CREATE TABLE TES.EMPLOYEE ( EMPLOYEE_ID INTEGER NOT NULL AUTO_INCREMENT, EMPLOYEE_NAME VARCHAR(80) NOT NULL, EMPLOYEE_USERNAME VARCHAR(15) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL UNIQUE, PRIMARY KEY(EMPLOYEE_ID), FOREIGN KEY(EMPLOYEE_USERNAME) REFERENCES TES.CREDENTIALS(EMPLOYEE_USERNAME) ON DELETE CASCADE ); -- create table TIMESHEET CREATE TABLE TES.TIMESHEET ( EMPLOYEE_ID INTEGER NOT NULL, END_WEEK DATE NOT NULL, PRIMARY KEY(EMPLOYEE_ID, END_WEEK), FOREIGN KEY(EMPLOYEE_ID) REFERENCES TES.EMPLOYEE(EMPLOYEE_ID) ON DELETE CASCADE ); -- create table TIMESHEETROW CREATE TABLE TES.TIMESHEETROW ( ID INTEGER NOT NULL AUTO_INCREMENT, EMPLOYEE_ID INTEGER NOT NULL, END_WEEK DATE NOT NULL, PROJECT_ID INTEGER NOT NULL DEFAULT 0, WORK_PACKAGE VARCHAR(5) NOT NULL DEFAULT "", NOTES VARCHAR(50) NULL, SAT DECIMAL(3,1) NULL, SUN DECIMAL(3,1) NULL, MON DECIMAL(3,1) NULL, TUE DECIMAL(3,1) NULL, WED DECIMAL(3,1) NULL, THU DECIMAL(3,1) NULL, FRI DECIMAL(3,1) NULL, PRIMARY KEY(ID, EMPLOYEE_ID, END_WEEK, PROJECT_ID, WORK_PACKAGE), FOREIGN KEY(EMPLOYEE_ID, END_WEEK) REFERENCES TES.TIMESHEET(EMPLOYEE_ID, END_WEEK) ON DELETE CASCADE ); -- Load data into CREDENTIALS table INSERT INTO TES.CREDENTIALS VALUES('admin', 'password'); INSERT INTO TES.CREDENTIALS VALUES('karan', 'password'); INSERT INTO TES.CREDENTIALS VALUES('ryan', 'password'); INSERT INTO TES.CREDENTIALS VALUES('test', 'password'); -- Load data into EMPLOYEE table INSERT INTO TES.EMPLOYEE VALUES('1', 'Admin admin', 'admin'); INSERT INTO TES.EMPLOYEE VALUES('2', 'Karanveer Khanna', 'karan'); INSERT INTO TES.EMPLOYEE VALUES('3', 'Ryan Liang', 'ryan'); INSERT INTO TES.EMPLOYEE VALUES('4', 'Test test', 'test'); -- Load data into TIMESHEET table INSERT INTO TES.TIMESHEET VALUES('1', '2018-11-09'); INSERT INTO TES.TIMESHEET VALUES('1', '2018-10-26'); INSERT INTO TES.TIMESHEET VALUES('2', '2018-11-02'); INSERT INTO TES.TIMESHEET VALUES('2', '2018-11-09'); INSERT INTO TES.TIMESHEET VALUES('2', '2018-10-26'); INSERT INTO TES.TIMESHEET VALUES('3', '2018-11-02'); INSERT INTO TES.TIMESHEET VALUES('3', '2018-11-09'); INSERT INTO TES.TIMESHEET VALUES('3', '2018-10-26'); INSERT INTO TES.TIMESHEET VALUES('4', '2018-11-02'); INSERT INTO TES.TIMESHEET VALUES('4', '2018-11-09'); INSERT INTO TES.TIMESHEET VALUES('4', '2018-10-26'); -- Load data into TIMESHEETROW table INSERT INTO TES.TIMESHEETROW VALUES(1, '1', '2018-10-26', '1', 'WP 1', 'NOTES 1', 0, 0, '1.2', '1.2','1.2','1.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(2, '1', '2018-10-26', '1', 'WP 2', 'NOTES 2', 0, 0, '2.2', '2.2','2.2','2.2','2.2'); INSERT INTO TES.TIMESHEETROW VALUES(3, '1', '2018-10-26', '2', 'WP 1', 'NOTES 3', 0, 0, '3.2', '2.2','1.2','3.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(4, '1', '2018-10-26', '1', 'WP 4', 'NOTES 4', 0, 0, '2.2', '1.2','4.2','1.2', 0); INSERT INTO TES.TIMESHEETROW VALUES(5, '1', '2018-11-09', '1', 'WP 1', 'NOTES 1', 0, 0, '1.2', '1.2','1.2','1.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(6, '1', '2018-11-09', '1', 'WP 2', 'NOTES 2', 0, 0, '2.2', '2.2','2.2','2.2','2.2'); INSERT INTO TES.TIMESHEETROW VALUES(7, '1', '2018-11-09', '2', 'WP 3', 'NOTES 3', 0, 0, '3.2', '2.2','1.2','3.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(8, '1', '2018-11-09', '4', 'WP 4', 'NOTES 4', 0, 0, '2.2', '1.2','4.2','1.2', 0); INSERT INTO TES.TIMESHEETROW VALUES(9, '2', '2018-10-26', '1', 'WP 1', 'NOTES 1', 0, 0, '1.2', '1.2','1.2','1.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(10, '2', '2018-10-26', '1', 'WP 2', 'NOTES 2', 0, 0, '2.2', '2.2','2.2','2.2','2.2'); INSERT INTO TES.TIMESHEETROW VALUES(11, '2', '2018-10-26', '2', 'WP 1', 'NOTES 3', 0, 0, '3.2', '2.2','1.2','3.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(12, '2', '2018-10-26', '1', 'WP 4', 'NOTES 4', 0, 0, '2.2', '1.2','4.2','1.2', 0); INSERT INTO TES.TIMESHEETROW VALUES(13, '2', '2018-11-09', '1', 'WP 1', 'NOTES 1', 0, 0, '1.2', '1.2','1.2','1.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(14, '2', '2018-11-09', '1', 'WP 2', 'NOTES 2', 0, 0, '2.2', '2.2','2.2','2.2','2.2'); INSERT INTO TES.TIMESHEETROW VALUES(15, '2', '2018-11-09', '2', 'WP 3', 'NOTES 3', 0, 0, '3.2', '2.2','1.2','3.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(16, '2', '2018-11-09', '4', 'WP 4', 'NOTES 4', 0, 0, '2.2', '1.2','4.2','1.2', 0); INSERT INTO TES.TIMESHEETROW VALUES(17, '3', '2018-10-26', '1', 'WP 1', 'NOTES 1', 0, 0, '1.2', '1.2','1.2','1.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(18, '3', '2018-10-26', '1', 'WP 2', 'NOTES 2', 0, 0, '2.2', '2.2','2.2','2.2','2.2'); INSERT INTO TES.TIMESHEETROW VALUES(19, '3', '2018-10-26', '2', 'WP 1', 'NOTES 3', 0, 0, '3.2', '2.2','1.2','3.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(20, '3', '2018-10-26', '1', 'WP 4', 'NOTES 4', 0, 0, '2.2', '1.2','4.2','1.2', 0); INSERT INTO TES.TIMESHEETROW VALUES(21, '3', '2018-11-09', '1', 'WP 1', 'NOTES 1', 0, 0, '1.2', '1.2','1.2','1.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(22, '3', '2018-11-09', '1', 'WP 2', 'NOTES 2', 0, 0, '2.2', '2.2','2.2','2.2','2.2'); INSERT INTO TES.TIMESHEETROW VALUES(23, '3', '2018-11-09', '2', 'WP 3', 'NOTES 3', 0, 0, '3.2', '2.2','1.2','3.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(24, '3', '2018-11-09', '4', 'WP 4', 'NOTES 4', 0, 0, '2.2', '1.2','4.2','1.2', 0); INSERT INTO TES.TIMESHEETROW VALUES(25, '4', '2018-10-26', '1', 'WP 1', 'NOTES 1', 0, 0, '1.2', '1.2','1.2','1.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(26, '4', '2018-10-26', '1', 'WP 2', 'NOTES 2', 0, 0, '2.2', '2.2','2.2','2.2','2.2'); INSERT INTO TES.TIMESHEETROW VALUES(27, '4', '2018-10-26', '2', 'WP 1', 'NOTES 3', 0, 0, '3.2', '2.2','1.2','3.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(28, '4', '2018-10-26', '1', 'WP 4', 'NOTES 4', 0, 0, '2.2', '1.2','4.2','1.2', 0); INSERT INTO TES.TIMESHEETROW VALUES(29, '4', '2018-11-09', '1', 'WP 1', 'NOTES 1', 0, 0, '1.2', '1.2','1.2','1.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(30, '4', '2018-11-09', '1', 'WP 2', 'NOTES 2', 0, 0, '2.2', '2.2','2.2','2.2','2.2'); INSERT INTO TES.TIMESHEETROW VALUES(31, '4', '2018-11-09', '2', 'WP 3', 'NOTES 3', 0, 0, '3.2', '2.2','1.2','3.2','1.2'); INSERT INTO TES.TIMESHEETROW VALUES(32, '4', '2018-11-09', '4', 'WP 4', 'NOTES 4', 0, 0, '2.2', '1.2','4.2','1.2', 0);
true
ca8e15de7fddbf93d01debbf5c025241144dff4d
SQL
reetahan/ears
/Database/user_delete.sql
UTF-8
775
3.625
4
[ "Apache-2.0" ]
permissive
DROP PROCEDURE IF EXISTS USER_DELETE ; DELIMITER // CREATE PROCEDURE USER_DELETE( userID_ INT ) BEGIN DECLARE val1 INT DEFAULT NULL ; DECLARE done INT DEFAULT FALSE ; DECLARE cursor1 CURSOR FOR SELECT CourseId FROM Enrollment WHERE UserId = userID_; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; OPEN cursor1; the_loop: LOOP FETCH NEXT FROM cursor1 INTO val1; IF done THEN LEAVE the_loop; ELSE CALL COURSE_DELETE(val1); END IF; END LOOP; CLOSE cursor1; DELETE FROM User WHERE UserID = userID_ ; DELETE FROM Account WHERE UserID = userID_ ; END // DELIMITER ;
true
0a0ed4b3f4ab125a79e27271653709cf83804248
SQL
sionguo/esms
/sql/guoxy.sql
UTF-8
34,719
3.09375
3
[]
no_license
<<<<<<< HEAD /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50719 Source Host : localhost:3306 Source Database : guoxy Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2017-10-20 15:13:21 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `admin` -- ---------------------------- DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `adminId` int(8) NOT NULL AUTO_INCREMENT, `adminName` varchar(20) NOT NULL, `adminPwd` varchar(20) NOT NULL, PRIMARY KEY (`adminId`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of admin -- ---------------------------- INSERT INTO `admin` VALUES ('1', 'admin', 'admin'); -- ---------------------------- -- Table structure for `bigtype` -- ---------------------------- DROP TABLE IF EXISTS `bigtype`; CREATE TABLE `bigtype` ( `btId` int(8) NOT NULL AUTO_INCREMENT, `btName` varchar(10) NOT NULL, PRIMARY KEY (`btId`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of bigtype -- ---------------------------- INSERT INTO `bigtype` VALUES ('0', '男装'); INSERT INTO `bigtype` VALUES ('1', '女装'); INSERT INTO `bigtype` VALUES ('2', '男鞋'); INSERT INTO `bigtype` VALUES ('3', '女鞋'); INSERT INTO `bigtype` VALUES ('4', '袜品'); INSERT INTO `bigtype` VALUES ('5', '家居'); INSERT INTO `bigtype` VALUES ('6', '童装'); INSERT INTO `bigtype` VALUES ('7', '内衣'); -- ---------------------------- -- Table structure for `goods` -- ---------------------------- DROP TABLE IF EXISTS `goods`; CREATE TABLE `goods` ( `goodsId` int(8) NOT NULL AUTO_INCREMENT, `goodsName` varchar(50) DEFAULT NULL, `goodsShow` varchar(100) DEFAULT NULL, `goodsPrice` int(8) DEFAULT NULL, `goodsCount` int(8) DEFAULT NULL, `season` int(8) DEFAULT NULL, `btId` int(8) DEFAULT NULL, `stId` int(8) DEFAULT NULL, `smallImg` varchar(100) DEFAULT NULL, `bigImg` varchar(100) DEFAULT NULL, `clickNum` int(8) DEFAULT NULL, `updateTime` date DEFAULT NULL, PRIMARY KEY (`goodsId`) ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of goods -- ---------------------------- INSERT INTO `goods` VALUES ('3', '女士T恤', '蝙蝠衣 黑色 女款', '95', '505', '2', '1', '21', 'a9a37c43b9c14de18c0a37f61a034f9b.png', '0c8fe9228c84465bb9a307bd1ec97371.png', '0', '2017-10-14'); INSERT INTO `goods` VALUES ('4', '女士T恤', '纯色 黑色 女款', '45', '630', '2', '1', '21', 'ae2fc21644a24a5d9c3bd7266de64e63.png', 'f38ecab28b844aafb758f80a22a9355a.png', '0', '2017-10-14'); INSERT INTO `goods` VALUES ('8', '女士T恤', '女款 灰色 图案', '65', '630', '2', '1', '21', '25d95debbb474fdca4382f9e03aa902a.png', '4dfbef237e734b03802d3cb774c5df82.png', '0', '2017-10-14'); INSERT INTO `goods` VALUES ('9', '女士T恤', '可爱 白色 女款', '123', '360', '2', '1', '21', '1cd6183d2c664e36adfc2a2c58f1558f.png', '96cfaaac903147679de989d76710c188.png', '0', '2017-10-14'); INSERT INTO `goods` VALUES ('13', '男士T恤', '瞅你咋地', '98', '632', '2', '0', '11', 'd4b83c6dddca466eaaef01e34493cbe5.png', '85ccb739d6a3498f97591466b2a9cad5.png', '0', '2017-10-13'); INSERT INTO `goods` VALUES ('16', '男士T恤', '纯色 男款 白色', '68', '450', '2', '0', '11', 'b4c7a8f4d9a148c39aad0f38447abd23.png', '4495cb22a5ff41d28ba59b74d72e2e08.png', '0', '2017-10-15'); INSERT INTO `goods` VALUES ('19', '男士衬衫', '熊本熊 黑色 男款', '59', '602', '2', '0', '11', 'fc687f7d2d3442a3af049860f6db700b.png', 'b6a7d1419b2a403fbf22514c26c90dfd.png', '0', '2017-10-15'); INSERT INTO `goods` VALUES ('20', '男士T恤', '纯色 圆领 黑色 男士', '89', '320', '2', '0', '11', '82b9e6626f4d4438b844848af11bac5e.png', '65b5dd1c269041b1ae644fa95ad16eca.png', '3', '2017-10-12'); INSERT INTO `goods` VALUES ('21', '凡客针织', '清凉 空调衣 黄色', '89', '600', '3', '1', '19', '147fe66ef66747f0bbdca00f80c0a97d.png', '65c2226392e948809b46a60f6304d004.png', '16', '2017-10-14'); INSERT INTO `goods` VALUES ('22', '凡客针织', '女款 红色 圆领', '123', '345', '3', '1', '19', 'ee932587da8c4c00abbb7c4018875e9f.png', 'b12d6f3553be4480886973d1ba8e092b.png', '39', '2017-10-13'); INSERT INTO `goods` VALUES ('23', '凡客针织', '黑色 圆领 女款', '96', '557', '3', '1', '19', 'c4353fd9d0b84333a37a79b5050c833b.png', '2bcaacb5fe9f48008292f7fb50b7230f.png', '23', '2017-10-15'); INSERT INTO `goods` VALUES ('24', '凡客针织', '女装 圆领 条纹', '123', '600', '2', '1', '19', '9c69ffb435664e66b0d543c944262840.png', '8c3c47b7ee324895ae8edfada41a4302.png', '0', '2017-10-15'); INSERT INTO `goods` VALUES ('25', '凡客针织', '男士 灰色 针织开衫', '123', '321', '3', '0', '2', '396f10653b3c4fb0805ab530791d1a85.png', '488d7d11e4a34c8dab2f783440964945.png', '64', '2017-10-15'); INSERT INTO `goods` VALUES ('26', '凡客针织', '男士 黑白灰 尖领', '69', '545', '3', '0', '2', '806597dce2c343d6a4986369fd593ea7.png', '61a675f2c7ff4928b7037a85a107dca2.png', '17', '2017-10-15'); INSERT INTO `goods` VALUES ('27', '凡客针织', '男士 圆领', '96', '652', '3', '0', '2', 'f639fd90757c4ba6a5f7cdb93e246165.png', '36ffeb218e1f4fc0864752aa578191bf.png', '0', '2017-10-15'); INSERT INTO `goods` VALUES ('28', '男士针织', '黑色 开衫', '89', '360', '3', '0', '2', '7a01b582e3894cc58ba26a961d9dcc83.png', '541a385858a848a98b8aadb61fe7a640.png', '16', '2017-10-15'); INSERT INTO `goods` VALUES ('29', '凡客衬衫', '水柔棉 短袖 男款 古蓝色', '98', '600', '3', '0', '7', '011ff182bb344b01b3a219707e538a8c.png', '3371ae7768a5442a87a6afddb1ec692e.png', '0', '2017-10-18'); INSERT INTO `goods` VALUES ('30', '凡客休闲裤', '轻弹水洗 收口慢跑裤 男款 黑色', '96', '360', '2', '0', '14', '50973c1264f2487fa689a53d22535dde.png', '51bc8a4a3dc141e08ec849a9a6605e52.png', '0', '2017-10-18'); INSERT INTO `goods` VALUES ('31', '凡客哑光收腹提臀微压连裤袜', '140D 经典款 黑色 ', '48', '490', '3', '4', '37', '17ea1879638d43b78008d549e013a2a0.png', '288ee5d5b66c4e18a56cab067b8f6201.png', '103', '2017-10-18'); INSERT INTO `goods` VALUES ('32', '男士衬衫', '蓝色 衬衫 蓝色', '96', '358', '3', '0', '8', 'b92cde55fcf145b5bd96f7e45a5a6d4f.jpg', '93d4902386cf44d385ca318e5c15005b.jpg', '5', '2017-10-18'); INSERT INTO `goods` VALUES ('33', '凡客衬衫', '衬衫 男 红黑格', '98', '628', '3', '0', '7', '80f435ce45ba4553a2bb42648f754470.jpg', 'b31bcfa3177f4227a38720c0ae606833.jpg', '2', '2017-10-18'); INSERT INTO `goods` VALUES ('34', '凡客衬衫', '男 衬衫 亚麻', '89', '342', '3', '0', '7', '0bfa24069f724d2899f14471095cafe6.jpg', '4e2edc4d5f3b4c8e90e5c60273a3ecea.jpg', '4', '2017-10-18'); INSERT INTO `goods` VALUES ('35', '凡客衬衫', '男 格子衬衫 ', '98', '360', '3', '0', '7', '8c1e34b438f54251994cae306aa7069a.jpg', 'ecf9f11393d3492ca69c8f8a82cc7406.jpg', '0', '2017-10-20'); -- ---------------------------- -- Table structure for `gwc` -- ---------------------------- DROP TABLE IF EXISTS `gwc`; CREATE TABLE `gwc` ( `gwcId` int(8) NOT NULL AUTO_INCREMENT, `goodsId` int(8) NOT NULL, `userId` int(8) NOT NULL, `count` int(8) NOT NULL, PRIMARY KEY (`gwcId`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of gwc -- ---------------------------- INSERT INTO `gwc` VALUES ('2', '25', '1', '1'); INSERT INTO `gwc` VALUES ('3', '22', '1', '1'); INSERT INTO `gwc` VALUES ('8', '32', '0', '1'); INSERT INTO `gwc` VALUES ('9', '32', '0', '1'); INSERT INTO `gwc` VALUES ('10', '32', '0', '1'); -- ---------------------------- -- Table structure for `orderform` -- ---------------------------- DROP TABLE IF EXISTS `orderform`; CREATE TABLE `orderform` ( `orderId` int(8) NOT NULL AUTO_INCREMENT, `orderNumber` varchar(30) DEFAULT NULL, `userId` int(8) DEFAULT NULL, `goodsId` int(8) DEFAULT NULL, `status` int(8) DEFAULT NULL, `count` int(8) DEFAULT NULL, `CreateTime` date DEFAULT NULL, PRIMARY KEY (`orderId`) ) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of orderform -- ---------------------------- INSERT INTO `orderform` VALUES ('22', '201710171728400000000173', '1', '21', '3', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('23', '201710171728410000000177', '1', '21', '3', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('26', '201710171917230000000160', '1', '28', '3', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('27', '201710171917300000000160', '1', '25', '1', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('28', '201710171917370000000106', '1', '25', '3', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('29', '201710171931250000000100', '1', '22', '3', '3', '2017-10-17'); INSERT INTO `orderform` VALUES ('30', '201710171931490000000121', '1', '22', '3', '3', '2017-10-17'); INSERT INTO `orderform` VALUES ('31', '201710171932280000000157', '1', '22', '3', '9', '2017-10-17'); INSERT INTO `orderform` VALUES ('32', '201710172335110000000185', '1', '22', '1', '3', '2017-10-17'); INSERT INTO `orderform` VALUES ('33', '201710172339220000000179', '1', '26', '1', '9', '2017-10-17'); INSERT INTO `orderform` VALUES ('34', '201710180006220000000106', '1', '22', '3', '1', '2017-10-18'); INSERT INTO `orderform` VALUES ('35', '201710180028010000000170', '1', '23', '1', '5', '2017-10-18'); INSERT INTO `orderform` VALUES ('36', '201710180029540000000131', '1', '23', '3', '1', '2017-10-18'); INSERT INTO `orderform` VALUES ('37', '201710181757300000000146', '1', '22', '0', '1', '2017-10-18'); INSERT INTO `orderform` VALUES ('38', '201710181759470000000135', '1', '20', '1', '10', '2017-10-18'); INSERT INTO `orderform` VALUES ('39', '201710181808110000000115', '1', '20', '3', '10', '2017-10-18'); INSERT INTO `orderform` VALUES ('40', '201710191750210000000005', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('41', '201710191750220000000025', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('42', '201710191750220000000039', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('43', '201710191750220000000028', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('44', '201710191750220000000035', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('45', '201710191750290000000090', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('46', '201710191750290000000056', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('47', '201710191750330000000055', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('48', '201710191750330000000016', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('49', '201710191750330000000022', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('50', '201710191751300000000097', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('51', '201710191811470000000043', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('52', '201710191811490000000016', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('53', '201710191811490000000071', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('54', '201710191811490000000029', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('55', '201710191811500000000056', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('56', '201710191811500000000016', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('57', '201710191811500000000082', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('58', '201710191811500000000023', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('59', '201710191811500000000011', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('60', '201710191811510000000047', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('61', '201710191811510000000084', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('62', '201710191811510000000096', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('63', '201710191811510000000020', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('64', '201710191811510000000028', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('65', '201710191811520000000074', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('66', '201710191816010000000046', '18', '32', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('67', '201710191820230000000014', '19', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('68', '201710191820260000000072', '19', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('69', '201710191822090000000046', '20', '32', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('70', '201710201445110000000093', '22', '33', '3', '1', '2017-10-20'); INSERT INTO `orderform` VALUES ('71', '201710201445250000000019', '22', '31', '1', '10', '2017-10-20'); INSERT INTO `orderform` VALUES ('72', '201710201445260000000035', '22', '33', '0', '1', '2017-10-20'); -- ---------------------------- -- Table structure for `smalltype` -- ---------------------------- DROP TABLE IF EXISTS `smalltype`; CREATE TABLE `smalltype` ( `stId` int(8) NOT NULL AUTO_INCREMENT, `stName` varchar(18) DEFAULT NULL, `btId` int(8) DEFAULT NULL, PRIMARY KEY (`stId`) ) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of smalltype -- ---------------------------- INSERT INTO `smalltype` VALUES ('1', '卫衣', '0'); INSERT INTO `smalltype` VALUES ('2', '针织衫', '0'); INSERT INTO `smalltype` VALUES ('3', '外套', '0'); INSERT INTO `smalltype` VALUES ('4', '西服', '0'); INSERT INTO `smalltype` VALUES ('5', '大衣', '0'); INSERT INTO `smalltype` VALUES ('6', '免烫衬衫', '0'); INSERT INTO `smalltype` VALUES ('7', '休闲衬衫', '0'); INSERT INTO `smalltype` VALUES ('8', '麻衬衫', '0'); INSERT INTO `smalltype` VALUES ('9', '水柔绵', '0'); INSERT INTO `smalltype` VALUES ('10', '皮肤衣', '0'); INSERT INTO `smalltype` VALUES ('11', 'T恤', '0'); INSERT INTO `smalltype` VALUES ('12', '短袖衬衫', '0'); INSERT INTO `smalltype` VALUES ('13', 'POLO衫', '0'); INSERT INTO `smalltype` VALUES ('14', '休闲裤', '0'); INSERT INTO `smalltype` VALUES ('15', '牛仔裤', '0'); INSERT INTO `smalltype` VALUES ('16', '针织裤', '0'); INSERT INTO `smalltype` VALUES ('17', '外套', '1'); INSERT INTO `smalltype` VALUES ('18', '卫衣', '1'); INSERT INTO `smalltype` VALUES ('19', '针织衫', '1'); INSERT INTO `smalltype` VALUES ('20', '休闲衬衫', '1'); INSERT INTO `smalltype` VALUES ('21', 'T恤', '1'); INSERT INTO `smalltype` VALUES ('22', '水柔绵', '1'); INSERT INTO `smalltype` VALUES ('23', '皮肤衣', '1'); INSERT INTO `smalltype` VALUES ('24', '运动速干', '1'); INSERT INTO `smalltype` VALUES ('25', '麻衬衫裙', '1'); INSERT INTO `smalltype` VALUES ('26', '牛仔裤', '1'); INSERT INTO `smalltype` VALUES ('27', '针织裤', '1'); INSERT INTO `smalltype` VALUES ('28', '休闲裤', '1'); INSERT INTO `smalltype` VALUES ('29', '复古跑', '2'); INSERT INTO `smalltype` VALUES ('30', '帆布鞋', '2'); INSERT INTO `smalltype` VALUES ('31', '休闲鞋', '2'); INSERT INTO `smalltype` VALUES ('32', '皮鞋', '2'); INSERT INTO `smalltype` VALUES ('33', '复古跑', '3'); INSERT INTO `smalltype` VALUES ('34', '帆布鞋', '3'); INSERT INTO `smalltype` VALUES ('35', '休闲鞋', '3'); INSERT INTO `smalltype` VALUES ('36', '连裤袜', '4'); INSERT INTO `smalltype` VALUES ('37', '打底裤', '4'); INSERT INTO `smalltype` VALUES ('38', '棉袜', '4'); INSERT INTO `smalltype` VALUES ('39', '床品套件', '5'); INSERT INTO `smalltype` VALUES ('40', '被子', '5'); INSERT INTO `smalltype` VALUES ('41', '枕头', '5'); INSERT INTO `smalltype` VALUES ('42', '围巾', '5'); INSERT INTO `smalltype` VALUES ('43', '背心', '5'); INSERT INTO `smalltype` VALUES ('44', '家居毯', '5'); INSERT INTO `smalltype` VALUES ('45', '旅行箱', '5'); INSERT INTO `smalltype` VALUES ('46', '卫衣', '6'); INSERT INTO `smalltype` VALUES ('47', '男童', '6'); INSERT INTO `smalltype` VALUES ('48', '女童', '6'); INSERT INTO `smalltype` VALUES ('49', '秋衣', '7'); INSERT INTO `smalltype` VALUES ('50', '打底裤', '7'); INSERT INTO `smalltype` VALUES ('51', '内衣', '7'); -- ---------------------------- -- Table structure for `user` -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(8) NOT NULL AUTO_INCREMENT, `userName` varchar(18) NOT NULL, `email` varchar(40) NOT NULL, `pwd` varchar(18) NOT NULL, `vip` int(8) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of user -- ---------------------------- INSERT INTO `user` VALUES ('0', 'admin', '', 'admin', '96'); INSERT INTO `user` VALUES ('22', 'guoguoguo', '1256134209@qq.com', 'guoguoguo', '676'); ======= /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50719 Source Host : localhost:3306 Source Database : guoxy Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2017-10-20 15:13:21 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `admin` -- ---------------------------- DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `adminId` int(8) NOT NULL AUTO_INCREMENT, `adminName` varchar(20) NOT NULL, `adminPwd` varchar(20) NOT NULL, PRIMARY KEY (`adminId`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of admin -- ---------------------------- INSERT INTO `admin` VALUES ('1', 'admin', 'admin'); -- ---------------------------- -- Table structure for `bigtype` -- ---------------------------- DROP TABLE IF EXISTS `bigtype`; CREATE TABLE `bigtype` ( `btId` int(8) NOT NULL AUTO_INCREMENT, `btName` varchar(10) NOT NULL, PRIMARY KEY (`btId`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of bigtype -- ---------------------------- INSERT INTO `bigtype` VALUES ('0', '男装'); INSERT INTO `bigtype` VALUES ('1', '女装'); INSERT INTO `bigtype` VALUES ('2', '男鞋'); INSERT INTO `bigtype` VALUES ('3', '女鞋'); INSERT INTO `bigtype` VALUES ('4', '袜品'); INSERT INTO `bigtype` VALUES ('5', '家居'); INSERT INTO `bigtype` VALUES ('6', '童装'); INSERT INTO `bigtype` VALUES ('7', '内衣'); -- ---------------------------- -- Table structure for `goods` -- ---------------------------- DROP TABLE IF EXISTS `goods`; CREATE TABLE `goods` ( `goodsId` int(8) NOT NULL AUTO_INCREMENT, `goodsName` varchar(50) DEFAULT NULL, `goodsShow` varchar(100) DEFAULT NULL, `goodsPrice` int(8) DEFAULT NULL, `goodsCount` int(8) DEFAULT NULL, `season` int(8) DEFAULT NULL, `btId` int(8) DEFAULT NULL, `stId` int(8) DEFAULT NULL, `smallImg` varchar(100) DEFAULT NULL, `bigImg` varchar(100) DEFAULT NULL, `clickNum` int(8) DEFAULT NULL, `updateTime` date DEFAULT NULL, PRIMARY KEY (`goodsId`) ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of goods -- ---------------------------- INSERT INTO `goods` VALUES ('3', '女士T恤', '蝙蝠衣 黑色 女款', '95', '505', '2', '1', '21', 'a9a37c43b9c14de18c0a37f61a034f9b.png', '0c8fe9228c84465bb9a307bd1ec97371.png', '0', '2017-10-14'); INSERT INTO `goods` VALUES ('4', '女士T恤', '纯色 黑色 女款', '45', '630', '2', '1', '21', 'ae2fc21644a24a5d9c3bd7266de64e63.png', 'f38ecab28b844aafb758f80a22a9355a.png', '0', '2017-10-14'); INSERT INTO `goods` VALUES ('8', '女士T恤', '女款 灰色 图案', '65', '630', '2', '1', '21', '25d95debbb474fdca4382f9e03aa902a.png', '4dfbef237e734b03802d3cb774c5df82.png', '0', '2017-10-14'); INSERT INTO `goods` VALUES ('9', '女士T恤', '可爱 白色 女款', '123', '360', '2', '1', '21', '1cd6183d2c664e36adfc2a2c58f1558f.png', '96cfaaac903147679de989d76710c188.png', '0', '2017-10-14'); INSERT INTO `goods` VALUES ('13', '男士T恤', '瞅你咋地', '98', '632', '2', '0', '11', 'd4b83c6dddca466eaaef01e34493cbe5.png', '85ccb739d6a3498f97591466b2a9cad5.png', '0', '2017-10-13'); INSERT INTO `goods` VALUES ('16', '男士T恤', '纯色 男款 白色', '68', '450', '2', '0', '11', 'b4c7a8f4d9a148c39aad0f38447abd23.png', '4495cb22a5ff41d28ba59b74d72e2e08.png', '0', '2017-10-15'); INSERT INTO `goods` VALUES ('19', '男士衬衫', '熊本熊 黑色 男款', '59', '602', '2', '0', '11', 'fc687f7d2d3442a3af049860f6db700b.png', 'b6a7d1419b2a403fbf22514c26c90dfd.png', '0', '2017-10-15'); INSERT INTO `goods` VALUES ('20', '男士T恤', '纯色 圆领 黑色 男士', '89', '320', '2', '0', '11', '82b9e6626f4d4438b844848af11bac5e.png', '65b5dd1c269041b1ae644fa95ad16eca.png', '3', '2017-10-12'); INSERT INTO `goods` VALUES ('21', '凡客针织', '清凉 空调衣 黄色', '89', '600', '3', '1', '19', '147fe66ef66747f0bbdca00f80c0a97d.png', '65c2226392e948809b46a60f6304d004.png', '16', '2017-10-14'); INSERT INTO `goods` VALUES ('22', '凡客针织', '女款 红色 圆领', '123', '345', '3', '1', '19', 'ee932587da8c4c00abbb7c4018875e9f.png', 'b12d6f3553be4480886973d1ba8e092b.png', '39', '2017-10-13'); INSERT INTO `goods` VALUES ('23', '凡客针织', '黑色 圆领 女款', '96', '557', '3', '1', '19', 'c4353fd9d0b84333a37a79b5050c833b.png', '2bcaacb5fe9f48008292f7fb50b7230f.png', '23', '2017-10-15'); INSERT INTO `goods` VALUES ('24', '凡客针织', '女装 圆领 条纹', '123', '600', '2', '1', '19', '9c69ffb435664e66b0d543c944262840.png', '8c3c47b7ee324895ae8edfada41a4302.png', '0', '2017-10-15'); INSERT INTO `goods` VALUES ('25', '凡客针织', '男士 灰色 针织开衫', '123', '321', '3', '0', '2', '396f10653b3c4fb0805ab530791d1a85.png', '488d7d11e4a34c8dab2f783440964945.png', '64', '2017-10-15'); INSERT INTO `goods` VALUES ('26', '凡客针织', '男士 黑白灰 尖领', '69', '545', '3', '0', '2', '806597dce2c343d6a4986369fd593ea7.png', '61a675f2c7ff4928b7037a85a107dca2.png', '17', '2017-10-15'); INSERT INTO `goods` VALUES ('27', '凡客针织', '男士 圆领', '96', '652', '3', '0', '2', 'f639fd90757c4ba6a5f7cdb93e246165.png', '36ffeb218e1f4fc0864752aa578191bf.png', '0', '2017-10-15'); INSERT INTO `goods` VALUES ('28', '男士针织', '黑色 开衫', '89', '360', '3', '0', '2', '7a01b582e3894cc58ba26a961d9dcc83.png', '541a385858a848a98b8aadb61fe7a640.png', '16', '2017-10-15'); INSERT INTO `goods` VALUES ('29', '凡客衬衫', '水柔棉 短袖 男款 古蓝色', '98', '600', '3', '0', '7', '011ff182bb344b01b3a219707e538a8c.png', '3371ae7768a5442a87a6afddb1ec692e.png', '0', '2017-10-18'); INSERT INTO `goods` VALUES ('30', '凡客休闲裤', '轻弹水洗 收口慢跑裤 男款 黑色', '96', '360', '2', '0', '14', '50973c1264f2487fa689a53d22535dde.png', '51bc8a4a3dc141e08ec849a9a6605e52.png', '0', '2017-10-18'); INSERT INTO `goods` VALUES ('31', '凡客哑光收腹提臀微压连裤袜', '140D 经典款 黑色 ', '48', '490', '3', '4', '37', '17ea1879638d43b78008d549e013a2a0.png', '288ee5d5b66c4e18a56cab067b8f6201.png', '103', '2017-10-18'); INSERT INTO `goods` VALUES ('32', '男士衬衫', '蓝色 衬衫 蓝色', '96', '358', '3', '0', '8', 'b92cde55fcf145b5bd96f7e45a5a6d4f.jpg', '93d4902386cf44d385ca318e5c15005b.jpg', '5', '2017-10-18'); INSERT INTO `goods` VALUES ('33', '凡客衬衫', '衬衫 男 红黑格', '98', '628', '3', '0', '7', '80f435ce45ba4553a2bb42648f754470.jpg', 'b31bcfa3177f4227a38720c0ae606833.jpg', '2', '2017-10-18'); INSERT INTO `goods` VALUES ('34', '凡客衬衫', '男 衬衫 亚麻', '89', '342', '3', '0', '7', '0bfa24069f724d2899f14471095cafe6.jpg', '4e2edc4d5f3b4c8e90e5c60273a3ecea.jpg', '4', '2017-10-18'); INSERT INTO `goods` VALUES ('35', '凡客衬衫', '男 格子衬衫 ', '98', '360', '3', '0', '7', '8c1e34b438f54251994cae306aa7069a.jpg', 'ecf9f11393d3492ca69c8f8a82cc7406.jpg', '0', '2017-10-20'); -- ---------------------------- -- Table structure for `gwc` -- ---------------------------- DROP TABLE IF EXISTS `gwc`; CREATE TABLE `gwc` ( `gwcId` int(8) NOT NULL AUTO_INCREMENT, `goodsId` int(8) NOT NULL, `userId` int(8) NOT NULL, `count` int(8) NOT NULL, PRIMARY KEY (`gwcId`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of gwc -- ---------------------------- INSERT INTO `gwc` VALUES ('2', '25', '1', '1'); INSERT INTO `gwc` VALUES ('3', '22', '1', '1'); INSERT INTO `gwc` VALUES ('8', '32', '0', '1'); INSERT INTO `gwc` VALUES ('9', '32', '0', '1'); INSERT INTO `gwc` VALUES ('10', '32', '0', '1'); -- ---------------------------- -- Table structure for `orderform` -- ---------------------------- DROP TABLE IF EXISTS `orderform`; CREATE TABLE `orderform` ( `orderId` int(8) NOT NULL AUTO_INCREMENT, `orderNumber` varchar(30) DEFAULT NULL, `userId` int(8) DEFAULT NULL, `goodsId` int(8) DEFAULT NULL, `status` int(8) DEFAULT NULL, `count` int(8) DEFAULT NULL, `CreateTime` date DEFAULT NULL, PRIMARY KEY (`orderId`) ) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of orderform -- ---------------------------- INSERT INTO `orderform` VALUES ('22', '201710171728400000000173', '1', '21', '3', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('23', '201710171728410000000177', '1', '21', '3', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('26', '201710171917230000000160', '1', '28', '3', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('27', '201710171917300000000160', '1', '25', '1', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('28', '201710171917370000000106', '1', '25', '3', '1', '2017-10-17'); INSERT INTO `orderform` VALUES ('29', '201710171931250000000100', '1', '22', '3', '3', '2017-10-17'); INSERT INTO `orderform` VALUES ('30', '201710171931490000000121', '1', '22', '3', '3', '2017-10-17'); INSERT INTO `orderform` VALUES ('31', '201710171932280000000157', '1', '22', '3', '9', '2017-10-17'); INSERT INTO `orderform` VALUES ('32', '201710172335110000000185', '1', '22', '1', '3', '2017-10-17'); INSERT INTO `orderform` VALUES ('33', '201710172339220000000179', '1', '26', '1', '9', '2017-10-17'); INSERT INTO `orderform` VALUES ('34', '201710180006220000000106', '1', '22', '3', '1', '2017-10-18'); INSERT INTO `orderform` VALUES ('35', '201710180028010000000170', '1', '23', '1', '5', '2017-10-18'); INSERT INTO `orderform` VALUES ('36', '201710180029540000000131', '1', '23', '3', '1', '2017-10-18'); INSERT INTO `orderform` VALUES ('37', '201710181757300000000146', '1', '22', '0', '1', '2017-10-18'); INSERT INTO `orderform` VALUES ('38', '201710181759470000000135', '1', '20', '1', '10', '2017-10-18'); INSERT INTO `orderform` VALUES ('39', '201710181808110000000115', '1', '20', '3', '10', '2017-10-18'); INSERT INTO `orderform` VALUES ('40', '201710191750210000000005', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('41', '201710191750220000000025', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('42', '201710191750220000000039', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('43', '201710191750220000000028', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('44', '201710191750220000000035', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('45', '201710191750290000000090', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('46', '201710191750290000000056', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('47', '201710191750330000000055', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('48', '201710191750330000000016', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('49', '201710191750330000000022', '0', '26', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('50', '201710191751300000000097', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('51', '201710191811470000000043', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('52', '201710191811490000000016', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('53', '201710191811490000000071', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('54', '201710191811490000000029', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('55', '201710191811500000000056', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('56', '201710191811500000000016', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('57', '201710191811500000000082', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('58', '201710191811500000000023', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('59', '201710191811500000000011', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('60', '201710191811510000000047', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('61', '201710191811510000000084', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('62', '201710191811510000000096', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('63', '201710191811510000000020', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('64', '201710191811510000000028', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('65', '201710191811520000000074', '0', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('66', '201710191816010000000046', '18', '32', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('67', '201710191820230000000014', '19', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('68', '201710191820260000000072', '19', '34', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('69', '201710191822090000000046', '20', '32', '3', '1', '2017-10-19'); INSERT INTO `orderform` VALUES ('70', '201710201445110000000093', '22', '33', '3', '1', '2017-10-20'); INSERT INTO `orderform` VALUES ('71', '201710201445250000000019', '22', '31', '1', '10', '2017-10-20'); INSERT INTO `orderform` VALUES ('72', '201710201445260000000035', '22', '33', '0', '1', '2017-10-20'); -- ---------------------------- -- Table structure for `smalltype` -- ---------------------------- DROP TABLE IF EXISTS `smalltype`; CREATE TABLE `smalltype` ( `stId` int(8) NOT NULL AUTO_INCREMENT, `stName` varchar(18) DEFAULT NULL, `btId` int(8) DEFAULT NULL, PRIMARY KEY (`stId`) ) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of smalltype -- ---------------------------- INSERT INTO `smalltype` VALUES ('1', '卫衣', '0'); INSERT INTO `smalltype` VALUES ('2', '针织衫', '0'); INSERT INTO `smalltype` VALUES ('3', '外套', '0'); INSERT INTO `smalltype` VALUES ('4', '西服', '0'); INSERT INTO `smalltype` VALUES ('5', '大衣', '0'); INSERT INTO `smalltype` VALUES ('6', '免烫衬衫', '0'); INSERT INTO `smalltype` VALUES ('7', '休闲衬衫', '0'); INSERT INTO `smalltype` VALUES ('8', '麻衬衫', '0'); INSERT INTO `smalltype` VALUES ('9', '水柔绵', '0'); INSERT INTO `smalltype` VALUES ('10', '皮肤衣', '0'); INSERT INTO `smalltype` VALUES ('11', 'T恤', '0'); INSERT INTO `smalltype` VALUES ('12', '短袖衬衫', '0'); INSERT INTO `smalltype` VALUES ('13', 'POLO衫', '0'); INSERT INTO `smalltype` VALUES ('14', '休闲裤', '0'); INSERT INTO `smalltype` VALUES ('15', '牛仔裤', '0'); INSERT INTO `smalltype` VALUES ('16', '针织裤', '0'); INSERT INTO `smalltype` VALUES ('17', '外套', '1'); INSERT INTO `smalltype` VALUES ('18', '卫衣', '1'); INSERT INTO `smalltype` VALUES ('19', '针织衫', '1'); INSERT INTO `smalltype` VALUES ('20', '休闲衬衫', '1'); INSERT INTO `smalltype` VALUES ('21', 'T恤', '1'); INSERT INTO `smalltype` VALUES ('22', '水柔绵', '1'); INSERT INTO `smalltype` VALUES ('23', '皮肤衣', '1'); INSERT INTO `smalltype` VALUES ('24', '运动速干', '1'); INSERT INTO `smalltype` VALUES ('25', '麻衬衫裙', '1'); INSERT INTO `smalltype` VALUES ('26', '牛仔裤', '1'); INSERT INTO `smalltype` VALUES ('27', '针织裤', '1'); INSERT INTO `smalltype` VALUES ('28', '休闲裤', '1'); INSERT INTO `smalltype` VALUES ('29', '复古跑', '2'); INSERT INTO `smalltype` VALUES ('30', '帆布鞋', '2'); INSERT INTO `smalltype` VALUES ('31', '休闲鞋', '2'); INSERT INTO `smalltype` VALUES ('32', '皮鞋', '2'); INSERT INTO `smalltype` VALUES ('33', '复古跑', '3'); INSERT INTO `smalltype` VALUES ('34', '帆布鞋', '3'); INSERT INTO `smalltype` VALUES ('35', '休闲鞋', '3'); INSERT INTO `smalltype` VALUES ('36', '连裤袜', '4'); INSERT INTO `smalltype` VALUES ('37', '打底裤', '4'); INSERT INTO `smalltype` VALUES ('38', '棉袜', '4'); INSERT INTO `smalltype` VALUES ('39', '床品套件', '5'); INSERT INTO `smalltype` VALUES ('40', '被子', '5'); INSERT INTO `smalltype` VALUES ('41', '枕头', '5'); INSERT INTO `smalltype` VALUES ('42', '围巾', '5'); INSERT INTO `smalltype` VALUES ('43', '背心', '5'); INSERT INTO `smalltype` VALUES ('44', '家居毯', '5'); INSERT INTO `smalltype` VALUES ('45', '旅行箱', '5'); INSERT INTO `smalltype` VALUES ('46', '卫衣', '6'); INSERT INTO `smalltype` VALUES ('47', '男童', '6'); INSERT INTO `smalltype` VALUES ('48', '女童', '6'); INSERT INTO `smalltype` VALUES ('49', '秋衣', '7'); INSERT INTO `smalltype` VALUES ('50', '打底裤', '7'); INSERT INTO `smalltype` VALUES ('51', '内衣', '7'); -- ---------------------------- -- Table structure for `user` -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(8) NOT NULL AUTO_INCREMENT, `userName` varchar(18) NOT NULL, `email` varchar(40) NOT NULL, `pwd` varchar(18) NOT NULL, `vip` int(8) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of user -- ---------------------------- INSERT INTO `user` VALUES ('0', 'admin', '', 'admin', '96'); INSERT INTO `user` VALUES ('22', 'guoguoguo', '1256134209@qq.com', 'guoguoguo', '676'); >>>>>>> a0d864b61c811ca09985ab1a8f5d48055cda8174
true
314d9bafc3d48e22ff0fedde93ad94fb0094bbd9
SQL
ChristianMurphy/SurveyPortlet
/src/main/sql/ciData.sql
UTF-8
56,707
2.953125
3
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "MPL-1.1", "WTFPL", "CDDL-1.0", "MIT", "LGPL-2.0-or-later", "CC-BY-SA-3.0", "EPL-1.0", "Classpath-exception-2.0", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "LGPL-2.1-only" ]
permissive
-- -- Licensed to Apereo under one or more contributor license -- agreements. See the NOTICE file distributed with this work -- for additional information regarding copyright ownership. -- Apereo licenses this file to you under the Apache License, -- Version 2.0 (the "License"); you may not use this file -- except in compliance with the License. You may obtain a -- copy of the License at the following location: -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, -- software distributed under the License is distributed on an -- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -- KIND, either express or implied. See the License for the -- specific language governing permissions and limitations -- under the License. -- insert into survey_survey (id, description, text_key, last_update_date, last_update_user, status, title, canonical_name) values (99991, 'Test Survey 1 description', 's1_text', now(), 'admin', 0, 'Test Survey 1', 'sur1'); insert into survey_survey (id, description, text_key, last_update_date, last_update_user, status, title, canonical_name) values (99992, 'Test Survey 2 description', 's2_text', now(), 'admin', 0, 'Test Survey 2', 'sur2'); insert into survey_survey (id, description, text_key, last_update_date, last_update_user, status, title, canonical_name) values (99993, 'CCC Lifestyle Survey', 'lifestyle_text', now(), 'admin', 0, 'Lifestyle Survey', 'lifestyle'); insert into survey_survey (id, description, text_key, last_update_date, last_update_user, status, title, canonical_name, require_approval) values (99994, 'Your Wellbeing - Student Assessment', 'uom_wellbeing_text', now(), 'admin', 0, 'Your Wellbeing', 'wellbeing', 1); insert into survey_survey (id, description, text_key, last_update_date, last_update_user, status, title, canonical_name) values (99995, 'Your Learning Student Assessment', 'uom_learning_text', now(), 'admin', 0, 'Your Learning', 'learning'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999101, 'Course types desired', 0, 'Indicate the types of courses you desire to take', 'courseType'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999102, 'Employment Status', 0, 'Please indicate the number of hours you are currently employed','employmentStatus'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999103, 'Childcare needed', 0, 'Please indicate the type of childcare needed to attend college', 'childcare'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999104, 'Willing Commute Distance', 0, 'How far would you commute in order to attend college?', 'commuteDistance'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999105, 'Commute Transportation', 0, 'Will you be using public transportation to attend college?', 'commutePublicTransport'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999106, 'Relocate in order to attend?', 0, 'Are you willing to relocate to attend college?', 'commuteRelocate'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999107, 'Change college based on interests?', 0, 'Are you willing to change your college choice based on your needs and interests?', 'changeBasedOnInterests'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999108, 'Select all that apply', 0, 'Please select all of the following that apply to you:', 'studentAtrributes'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999201, 'Someone to talk to', 0, 'There is someone I can talk to about my personal problems', 'someoneTalkTo'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999202, 'I have enough friends', 0, 'I feel that I have enough friends and acquaintances in my life', 'enoughFriends'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999203, 'Not enough time with others', 0, 'I feel like I don''t spend enough time doing things with others', 'closePeople'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999204, 'People care about me', 0, 'I feel there are people in my life who really care about me', 'caringPeople'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999205, 'I get out', 0, 'I get out and about in the open air enough', 'getOut'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999206, 'I dislike physical activity', 0, 'I dislike physical activities like walking, gardening, dancing', 'dislikePhysical'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999207, 'I find time to be active', 0, 'Being physically active is part of my daily routine', 'findTimeToBeActive'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999208, 'I do different activities', 0, 'I get involved in different sports and physical activities', 'differentActivities'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999209, 'I know my thoughts', 0, 'I am aware of what thoughts are passing through my mind', 'myThoughts'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999210, 'I cannot express my feelings', 0, 'I find it hard to find words to describe my feelings', 'expressFeelings'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999211, 'I can focus', 0, 'I can focus on what I need to do without getting distracted', 'noDistractions'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999212, 'I take notice of my surroundings', 0, 'I take time to notice what''s going on around me', 'takeNotice'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999213, 'I feel accomplishment', 0, 'I feel a sense of accomplishment from the tings I do', 'senseOfAccomplishment'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999214, 'I am bored', 0, 'I find my day to day life boring', 'boring'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999215, 'I enjoy learning', 0, 'I love discovering and trying new things', 'loveDiscovering'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999216, 'I do fun things', 0, 'I like doing things just for fun', 'justForFun'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999217, 'I help others', 0, 'I feel that I help others in big or small ways', 'helpOthers'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999218, 'I volunteer', 0, 'I am happy to volunteer my time to help others', 'volunteer'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999219, 'I make a difference', 0, 'I feel that I make a positive difference to other people’s lives', 'makeDifference'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999220, 'I am unkind', 0, 'I find it hard to be kind and positive to others', 'hardToBeKind'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999221, 'I take care of myself', 0, 'I take good care of myself physically', 'takeCareSelf'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999222, 'I take risks', 0, 'I take dangerous risks with my safetly or my health', 'takeRisks'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999223, 'I have balance', 0, 'I have a good work/life balance', 'lifeBalance'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999224, 'I take care of my mental state', 0, 'I make a real effort to look after my mental health', 'makeEffort'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999301, 'I am a team player', 0, 'I know how to work well in groups', 'teamPlayer'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999302, 'I am adaptable to learning', 0, 'I feel comfortable exploring new ways of learning topics ', 'adaptableAtLearning'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999303, 'I know how best I learn', 0, 'I understand what I need to do to learn most effectively ', 'effectiveLearner'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999304, 'I experiment when I am stuck', 0, 'I often try something new when I feel stuck', 'experimentWhenStuck'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999305, 'I have good time management skills', 0, 'I know how to manage my time', 'manageTime'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999306, 'I know how to prioritise', 0, 'I feel comfortable prioritising and working with multiple deadlines', 'prioritising'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999307, 'I know that planning can lead to success', 0, 'I understand the impact that planning can have on my success', 'planSuccess'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999308, 'I plan ahead', 0, 'I often plan ahead to make sure I complete all tasks', 'planAhead'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999309, 'I can search various sources for information', 0, 'I feel comfortable searching for information from a variety of sources', 'searchVariety'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999310, 'I know how to evaluate quality of information', 0, 'I understand what is required to analyse the validity and quality of information', 'analyseQuality'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999311, 'I know how categorize information', 0, 'I know how to group information from a range of sources to prepare for analysis', 'groupInformation'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999312, 'I consider the source of information', 0, 'I often think about where information has originated', 'origination'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999313, 'I can form opinions based on other''s work', 0, 'I feel comfortable forming opinions on the work of others', 'opinionsBasedOnOthers'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999314, 'I can incorporate my work', 0, 'I understand how to incorporate my opinion into analysis of the work of others', 'incorporateMyWork'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999315, 'I can summarize what I have read', 0, 'I know how to summarise and rephrase what I have read ', 'rephrase'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999316, 'I share my understanding', 0, 'I often apply my own understanding to others’ ideas', 'understanding'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999317, 'I know how to write an academic essay', 0, 'I know what is required in an academic essay', 'academicEssay'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999318, 'I can include my ideas within academic work', 0, 'I feel comfortable including my own ideas within academic work', 'includeInAcademicWork'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999319, 'I can present my ideas for maximum impact', 0, 'I understand how to structure my ideas for maximum impact', 'maxImpact'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999320, 'I welcome feedback', 0, 'I often use feedback on one assignment to improve the next', 'welcomeFeedback'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999321, 'I know how to revise', 0, 'I know what I need to revise effectively', 'revise'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999322, 'I can revise multiple topics/courses concurrently', 0, 'I feel comfortable revising for multiple topics/courses at once', 'revisingConcurrently'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999323, 'I can select revising methods appropriately', 0, 'I understand how to select the best method for revising for a particular course', 'revisingMethod'); insert into survey_question (id, alt_text, status, text, canonical_name) values (9999324, 'I often include time for revision in my work', 0, 'I often build revision into my regular term-time work', 'revisionIncluded'); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (2, 1, 9999101, 99993); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 2, 9999102, 99993); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 3, 9999103, 99993); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 4, 9999104, 99993); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 5, 9999105, 99993); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 6, 9999106, 99993); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 5, 9999107, 99993); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 6, 9999108, 99993); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 1, 9999201, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 2, 9999202, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 3, 9999203, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 4, 9999204, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 5, 9999205, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 6, 9999206, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 7, 9999207, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 8, 9999208, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 9, 9999209, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 10, 9999210, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 11, 9999211, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 12, 9999212, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 13, 9999213, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 14, 9999214, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 15, 9999215, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 16, 9999216, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 17, 9999217, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 18, 9999218, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 19, 9999219, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 20, 9999220, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 21, 9999221, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 22, 9999222, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 23, 9999223, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 24, 9999224, 99994); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 1, 9999301, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 2, 9999302, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 3, 9999303, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 4, 9999304, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 5, 9999305, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 6, 9999306, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 7, 9999307, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 8, 9999308, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 9, 9999309, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 10, 9999310, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 11, 9999311, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 12, 9999312, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 13, 9999313, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 14, 9999314, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 15, 9999315, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 16, 9999316, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 17, 9999317, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 18, 9999318, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 19, 9999319, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 20, 9999320, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 21, 9999321, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 22, 9999322, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 23, 9999323, 99995); insert into survey_survey_question (num_allowed_answers, sequence, question_id, survey_id) values (1, 24, 9999324, 99995); insert into survey_answer (id, alt_text, text) values (9999201, 'Online courses', 'Online (including telecourse)'); insert into survey_answer (id, alt_text, text) values (9999202, 'Face-to-face courses', 'Face-to-face courses'); insert into survey_answer (id, alt_text, text) values (9999204, 'Not employed', 'Not employed'); insert into survey_answer (id, alt_text, text) values (9999203, 'Hybrid / both', 'Hybrid (both online and face-to-face courses)'); insert into survey_answer (id, alt_text, text) values (9999206, '11-19 hours', '11-19 hours'); insert into survey_answer (id, alt_text, text) values (9999205, '1-10 hours', '1-10 hours'); insert into survey_answer (id, alt_text, text) values (9999208, '25-30 hours', '25-30 hours'); insert into survey_answer (id, alt_text, text) values (9999207, '20-25 hours', '20-25 hours'); insert into survey_answer (id, alt_text, text) values (9999210, '35-40 hours', '35-40 hours'); insert into survey_answer (id, alt_text, text) values (9999209, '30-35 hours', '30-35 hours'); insert into survey_answer (id, alt_text, text) values (9999211, 'No childcare needed', 'No childcare needed'); insert into survey_answer (id, alt_text, text) values (9999213, 'Offsite', 'Offsite'); insert into survey_answer (id, alt_text, text) values (9999212, 'Onsite/Child Development Center', 'Onsite/Child Development Center'); insert into survey_answer (id, alt_text, text) values (9999214, '< 15 miles', 'Less than 15 miles'); insert into survey_answer (id, alt_text, text) values (9999215, '15-30 miles', '15-30 miles'); insert into survey_answer (id, alt_text, text) values (9999216, '31-45 miles', '31-45 miles'); insert into survey_answer (id, alt_text, text) values (9999217, '> 45 miles', 'More than 45 miles'); insert into survey_answer (id, alt_text, text) values (9999218, 'Yes', 'Yes'); insert into survey_answer (id, alt_text, text) values (9999219, 'No', 'No'); insert into survey_answer (id, alt_text, text) values (9999220, 'Foster Youth?', 'I am a Foster Youth'); insert into survey_answer (id, alt_text, text) values (9999221, 'Veteran', 'I am a Veteran'); insert into survey_answer (id, alt_text, text, help_text) values (9999222, 'CalWORKs Student?', 'I am a CalWORKs Student', 'Need help text for CalWORKs'); insert into survey_answer (id, alt_text, text) values (9999223, 'DSPS?', 'DSPS'); insert into survey_answer (id, alt_text, text) values (9999224, 'EOPS?', 'EOPS'); insert into survey_answer (id, alt_text, text) values (9999225, 'Clubs or Student Organizations', 'I am interested in joining a student organization or club'); insert into survey_answer (id, alt_text, text) values (9999226, 'Tutoring Need', 'I am interested in tutoring services'); insert into survey_answer (id, alt_text, text) values (9999227, 'Financial Aid?', 'I am interested in financial aid'); insert into survey_answer (id, alt_text, text) values (9999301, 'Never', 'Never'); insert into survey_answer (id, alt_text, text) values (9999302, 'Rarely', 'Rarely'); insert into survey_answer (id, alt_text, text) values (9999303, 'Sometimes', 'Sometimes'); insert into survey_answer (id, alt_text, text) values (9999304, 'Usually', 'Usually'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (1, 9999101, 9999201, 'onlinecoursespreference'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (2, 9999101, 9999202, 'face2facepreference'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (3, 9999101, 9999203, 'hybridcoursepreference'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (2, 9999102, 9999205, 'work1-10'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (1, 9999102, 9999204, 'nohoursworked'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (4, 9999102, 9999207, 'work20-25'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (3, 9999102, 9999206, 'work11-19'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (6, 9999102, 9999209, 'work30-35'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (5, 9999102, 9999208, 'work25-30'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, logic) values (2, 9999103, 9999212, 'onsitechildcareprefernce', 'POPUPTEXT|onsitechildcare,NOTIFICATION|childcare'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (1, 9999103, 9999211, 'nochildcareneeded'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (7, 9999102, 9999210, 'work35-40'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, logic) values (3, 9999103, 9999213, 'offsitechildcarepreference', 'NOTIFICATION|childcare'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (1, 9999104, 9999214, 'commuteLT15'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (2, 9999104, 9999215, 'commute15_30'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (3, 9999104, 9999216, 'commute31_45'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (4, 9999104, 9999217, 'commuteOver45'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (1, 9999105, 9999218, 'yesPublicTransport'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (2, 9999105, 9999219, 'noPublicTransport'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (1, 9999106, 9999218, 'yesRelocate'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (2, 9999106, 9999219, 'noRelocate'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (1, 9999107, 9999218, 'yesChangeCollege'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (2, 9999107, 9999219, 'noChangeCollege'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (1, 9999108, 9999220, 'isFosterYouth'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (2, 9999108, 9999221, 'isVeteran'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (3, 9999108, 9999222, 'isCalWORKs'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (4, 9999108, 9999223, 'isDSPS'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (5, 9999108, 9999224, 'isEOPS'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (6, 9999108, 9999225, 'hasClubInterest'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (7, 9999108, 9999226, 'hasTutoringInterest'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name) values (8, 9999108, 9999227, 'hasFinancialAidInterest'); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999201, 9999301, 'someoneTalkToNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999201, 9999302, 'someoneTalkToRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999201, 9999303, 'someoneTalkToSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999201, 9999304, 'someoneTalkToUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999202, 9999301, 'enoughFriendsNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999202, 9999302, 'enoughFriendsRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999202, 9999303, 'enoughFriendsSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999202, 9999304, 'enoughFriendsUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999203, 9999301, 'closePeopleNever', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999203, 9999302, 'closePeopleRarely', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999203, 9999303, 'closePeopleSometimes', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999203, 9999304, 'closePeopleUsually', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999204, 9999301, 'caringPeopleNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999204, 9999302, 'caringPeopleRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999204, 9999303, 'caringPeopleSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999204, 9999304, 'caringPeopleUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999205, 9999301, 'getOutNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999205, 9999302, 'getOutRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999205, 9999303, 'getOutSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999205, 9999304, 'getOutUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999206, 9999301, 'dislikePhysicalNever', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999206, 9999302, 'dislikePhysicalRarely', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999206, 9999303, 'dislikePhysicalSometimes', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999206, 9999304, 'dislikePhysicalUsually', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999207, 9999301, 'findTimeToBeActiveNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999207, 9999302, 'findTimeToBeActiveRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999207, 9999303, 'findTimeToBeActiveSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999207, 9999304, 'findTimeToBeActiveUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999208, 9999301, 'differentActivitiesNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999208, 9999302, 'differentActivitiesRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999208, 9999303, 'differentActivitiesSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999208, 9999304, 'differentActivitiesUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999209, 9999301, 'myThoughtsNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999209, 9999302, 'myThoughtsRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999209, 9999303, 'myThoughtsSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999209, 9999304, 'myThoughtsUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999210, 9999301, 'expressFeelingsNever', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999210, 9999302, 'expressFeelingsRarely', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999210, 9999303, 'expressFeelingsSometimes', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999210, 9999304, 'expressFeelingsUsually', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999211, 9999301, 'noDistractionsNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999211, 9999302, 'noDistractionsRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999211, 9999303, 'noDistractionsSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999211, 9999304, 'noDistractionsUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999212, 9999301, 'takeNoticeNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999212, 9999302, 'takeNoticeRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999212, 9999303, 'takeNoticeSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999212, 9999304, 'takeNoticeUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999213, 9999301, 'senseOfAccomplishmentNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999213, 9999302, 'senseOfAccomplishmentRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999213, 9999303, 'senseOfAccomplishmentSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999213, 9999304, 'senseOfAccomplishmentUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999214, 9999301, 'boringNever', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999214, 9999302, 'boringRarely', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999214, 9999303, 'boringSometimes', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999214, 9999304, 'boringUsually', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999215, 9999301, 'loveDiscoveringNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999215, 9999302, 'loveDiscoveringRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999215, 9999303, 'loveDiscoveringSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999215, 9999304, 'loveDiscoveringUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999216, 9999301, 'justForFunNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999216, 9999302, 'justForFunRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999216, 9999303, 'justForFunSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999216, 9999304, 'justForFunUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999217, 9999301, 'helpOthersNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999217, 9999302, 'helpOthersRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999217, 9999303, 'helpOthersSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999217, 9999304, 'helpOthersUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999218, 9999301, 'volunteerNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999218, 9999302, 'volunteerRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999218, 9999303, 'volunteerSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999218, 9999304, 'volunteerUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999219, 9999301, 'makeDifferenceNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999219, 9999302, 'makeDifferenceRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999219, 9999303, 'makeDifferenceSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999219, 9999304, 'makeDifferenceUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999220, 9999301, 'hardToBeKindsNever', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999220, 9999302, 'hardToBeKindsRarely', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999220, 9999303, 'hardToBeKindsSometimes', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999220, 9999304, 'hardToBeKindsUsually', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999221, 9999301, 'takeCareSelfNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999221, 9999302, 'takeCareSelfRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999221, 9999303, 'takeCareSelfSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999221, 9999304, 'takeCareSelfUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999222, 9999301, 'takeRisksNever', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999222, 9999302, 'takeRisksRarely', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999222, 9999303, 'takeRisksSometimes', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999222, 9999304, 'takeRisksUsually', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999223, 9999301, 'lifeBalanceNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999223, 9999302, 'lifeBalanceRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999223, 9999303, 'lifeBalanceSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999223, 9999304, 'lifeBalanceUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999224, 9999301, 'makeEffortNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999224, 9999302, 'makeEffortRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999224, 9999303, 'makeEffortSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999224, 9999304, 'makeEffortUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999301, 9999301, 'teamPlayerNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999301, 9999302, 'teamPlayerRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999301, 9999303, 'teamPlayerSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999301, 9999304, 'teamPlayerUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999302, 9999301, 'adaptableAtLearningNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999302, 9999302, 'adaptableAtLearningRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999302, 9999303, 'adaptableAtLearningSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999302, 9999304, 'adaptableAtLearningUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999303, 9999301, 'effectiveLearnerNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999303, 9999302, 'effectiveLearnerRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999303, 9999303, 'effectiveLearnerSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999303, 9999304, 'effectiveLearnerUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999304, 9999301, 'experimentWhenStuckNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999304, 9999302, 'experimentWhenStuckRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999304, 9999303, 'experimentWhenStuckSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999304, 9999304, 'experimentWhenStuckUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999305, 9999301, 'manageTimeNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999305, 9999302, 'manageTimeRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999305, 9999303, 'manageTimeSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999305, 9999304, 'manageTimeUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999306, 9999301, 'prioritisingNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999306, 9999302, 'prioritisingRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999306, 9999303, 'prioritisingSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999306, 9999304, 'prioritisingUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999307, 9999301, 'planSuccessNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999307, 9999302, 'planSuccessRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999307, 9999303, 'planSuccessSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999307, 9999304, 'planSuccessUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999308, 9999301, 'planAheadNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999308, 9999302, 'planAheadRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999308, 9999303, 'planAheadSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999308, 9999304, 'planAheadUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999309, 9999301, 'searchVarietyNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999309, 9999302, 'searchVarietyRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999309, 9999303, 'searchVarietySometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999309, 9999304, 'searchVarietyUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999310, 9999301, 'analyseQualityNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999310, 9999302, 'analyseQualityRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999310, 9999303, 'analyseQualitySometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999310, 9999304, 'analyseQualityUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999311, 9999301, 'groupInformationNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999311, 9999302, 'groupInformationRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999311, 9999303, 'groupInformationSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999311, 9999304, 'groupInformationUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999312, 9999301, 'originationNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999312, 9999302, 'originationRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999312, 9999303, 'originationSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999312, 9999304, 'originationUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999313, 9999301, 'opinionsBasedOnOthersNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999313, 9999302, 'opinionsBasedOnOthersRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999313, 9999303, 'opinionsBasedOnOthersSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999313, 9999304, 'opinionsBasedOnOthersUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999314, 9999301, 'incorporateMyWorkNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999314, 9999302, 'incorporateMyWorkRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999314, 9999303, 'incorporateMyWorkSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999314, 9999304, 'incorporateMyWorkUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999315, 9999301, 'rephraseNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999315, 9999302, 'rephraseRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999315, 9999303, 'rephraseSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999315, 9999304, 'rephraseUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999316, 9999301, 'understandingNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999316, 9999302, 'understandingRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999316, 9999303, 'understandingSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999316, 9999304, 'understandingUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999317, 9999301, 'academicEssayNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999317, 9999302, 'academicEssayRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999317, 9999303, 'academicEssaySometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999317, 9999304, 'academicEssayUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999318, 9999301, 'includeInAcademicWorkNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999318, 9999302, 'includeInAcademicWorkRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999318, 9999303, 'includeInAcademicWorkSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999318, 9999304, 'includeInAcademicWorkUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999319, 9999301, 'maxImpactNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999319, 9999302, 'maxImpactRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999319, 9999303, 'maxImpactSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999319, 9999304, 'maxImpactUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999320, 9999301, 'welcomeFeedbackNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999320, 9999302, 'welcomeFeedbackRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999320, 9999303, 'welcomeFeedbackSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999320, 9999304, 'welcomeFeedbackUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999321, 9999301, 'reviseNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999321, 9999302, 'reviseRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999321, 9999303, 'reviseSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999321, 9999304, 'reviseUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999322, 9999301, 'revisingConcurrentlyNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999322, 9999302, 'revisingConcurrentlyRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999322, 9999303, 'revisingConcurrentlySometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999322, 9999304, 'revisingConcurrentlyUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999323, 9999301, 'revisingMethodNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999323, 9999302, 'revisingMethodRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999323, 9999303, 'revisingMethodSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999323, 9999304, 'revisingMethodUsually', 3); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (1, 9999324, 9999301, 'revisionIncludedNever', 0); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (2, 9999324, 9999302, 'revisionIncludedRarely', 1); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (3, 9999324, 9999303, 'revisionIncludedSometimes', 2); insert into survey_question_answer (sequence, question_id, answer_id, canonical_name, value) values (4, 9999324, 9999304, 'revisionIncludedUsually', 3); insert into survey_text (text_key, variant, alt_text, definition_text, help_text, text) values ('lifestyle_text', '', 'alt-text', 'def-text', 'help-text', 'survey-text'); insert into survey_text (text_key, variant, alt_text, definition_text, help_text, text) values ('onsitechildcare', '', 'On Site Childcare Notice', 'Click here for more information', 'What onsite means: blah blah', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
true
bc453c96e67bf959abec42cf3f9e8552f09ff4a6
SQL
mgg-dev-it/demo
/SpringBoot/pizza-due/db/init_db.sql
UTF-8
666
3.34375
3
[ "MIT" ]
permissive
DROP USER IF EXISTS pizzadue; DROP DATABASE IF EXISTS pizzadue; CREATE USER 'pizzadue'@'%' IDENTIFIED BY 'pizzadue'; CREATE DATABASE pizzadue DEFAULT CHARACTER SET 'utf8' DEFAULT COLLATE 'utf8_general_ci'; GRANT ALL PRIVILEGES ON pizzadue.* TO 'pizzadue'@'%'; SET PASSWORD FOR 'pizzadue'@'%' = 'pizzadue'; use pizzadue; CREATE TABLE pizza (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255), value INT, PRIMARY KEY (id)); INSERT INTO pizza (name, value) VALUES ('Margherita', 100); INSERT INTO pizza (name, value) VALUES ('Salame', 150); INSERT INTO pizza (name, value) VALUES ('Prosciutto', 220); select * from pizza; -- SET GLOBAL time_zone = '+2:00';
true
0d3ca97334b779b66b60951fd09d1553e1689c7c
SQL
ninjayoto/Introduction-To-Database-Systems
/hw1-q5.sql
UTF-8
273
2.65625
3
[]
no_license
-- Seoyoung Park -- CSE 414 -- HOMEWORK 1, Problem 5 select Name, Distance from MyRestaurants WHERE Distance <= 20 ORDER BY Name ASC; -- AppleBees 6 -- Chipotle 7 -- Hosoonyi 10 -- Isarn 9 -- WildWasabi 6
true
ac2c694fa86629a090b071f8dbf709b40af40e55
SQL
Jwils21/UdemySqlPractice
/2.6 Using In Between & Wildcard charachters.sql
UTF-8
854
3.5
4
[]
no_license
SELECT * FROM HumanResources.vEmployee where FirstName = 'Chris' or FirstName = 'Steve' or FirstName = 'Michael' or FirstName = 'Thomas' --Benefit of using in, same as above SELECT * FROM HumanResources.vEmployee where FirstName IN ('Chris', 'Steve', 'Michael', 'Thomas') --between clause SELECT * FROM Sales.vStoreWithDemographics where AnnualSales between 1000000 and 2000000; --Wildcard Character use SELECT * FROM HumanResources.vEmployee where FirstName like 'Mi%' --any amount of charachters --Wildcard Character use SELECT * FROM HumanResources.vEmployee where FirstName like 'Mi_' --only 1 charachter --Wildcard Character use SELECT * FROM HumanResources.vEmployee where FirstName like '%s' --ends with s --Wildcard Character use SELECT * FROM HumanResources.vEmployee where FirstName like '%h%' --h in the name
true
7a9c90e36ed3ad34908502befecfd2e40d5da79e
SQL
Awelerson/option_ajax
/banco/jmusic.sql
UTF-8
2,838
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 24-Nov-2016 às 02:12 -- Versão do servidor: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `jmusic` -- CREATE DATABASE IF NOT EXISTS `jmusic` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `jmusic`; -- -------------------------------------------------------- -- -- Estrutura da tabela `cantor` -- CREATE TABLE IF NOT EXISTS `cantor` ( `id` int(11) NOT NULL, `nome` varchar(20) NOT NULL, `estilo` varchar(20) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `cantor` -- INSERT INTO `cantor` (`id`, `nome`, `estilo`) VALUES (1, 'yui', 'jpop'), (2, 'one ok rock', 'jrock'), (3, 'Evanescence', 'rock'), (4, 'Miwa', 'jpop'); -- -------------------------------------------------------- -- -- Estrutura da tabela `musica` -- CREATE TABLE IF NOT EXISTS `musica` ( `id` int(11) NOT NULL, `nome_musica` varchar(30) NOT NULL, `link` varchar(100) NOT NULL, `cantor_nome` varchar(20) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `musica` -- INSERT INTO `musica` (`id`, `nome_musica`, `link`, `cantor_nome`) VALUES (1, 'again', 'https://www.youtube.com/embed/MLfMrBfqCu8', 'yui'), (2, 'fight', 'https://www.youtube.com/embed/YGYj5F1OD9w', 'yui'), (3, 'feel my soul', 'https://www.youtube.com/embed/h9WWfh_WZ6M', 'yui'), (4, 'the beginning', 'https://www.youtube.com/embed/Hh9yZWeTmVM', 'one ok rock'), (5, 'bring me to life', 'https://www.youtube.com/embed/3YxaaGgTQYM', 'Evanescence'), (6, 'change', 'https://www.youtube.com/embed/3yComZ5t00c', 'miwa'), (7, 'clock strikes', 'https://www.youtube.com/embed/6YZlFdTIdzM', 'one ok rock'), (8, 'Re:make', 'https://www.youtube.com/embed/bV4vcr8E4HU', 'one ok rock'); -- -- Indexes for dumped tables -- -- -- Indexes for table `cantor` -- ALTER TABLE `cantor` ADD PRIMARY KEY (`id`); -- -- Indexes for table `musica` -- ALTER TABLE `musica` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `cantor` -- ALTER TABLE `cantor` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `musica` -- ALTER TABLE `musica` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
8bb109864013dbe0a9001c2185f6128fcb644e76
SQL
radtek/abs3
/sql/mmfo/bars/Table/finmon_que_vid2.sql
WINDOWS-1251
5,095
3.25
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/FINMON_QUE_VID2.sql =========*** Run * PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO to FINMON_QUE_VID2 *** BEGIN execute immediate 'begin bpa.alter_policy_info(''FINMON_QUE_VID2'', ''CENTER'' , null, ''E'', ''E'', ''E''); bpa.alter_policy_info(''FINMON_QUE_VID2'', ''FILIAL'' , ''M'', ''M'', ''M'', ''M''); bpa.alter_policy_info(''FINMON_QUE_VID2'', ''WHOLE'' , null, ''E'', ''E'', ''E''); null; end; '; END; / PROMPT *** Create table FINMON_QUE_VID2 *** begin execute immediate ' CREATE TABLE BARS.FINMON_QUE_VID2 ( ID NUMBER, VID VARCHAR2(4), COMM VARCHAR2(254), KF VARCHAR2(6) DEFAULT sys_context(''bars_context'',''user_mfo'') ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING TABLESPACE BRSSMLD '; exception when others then if sqlcode=-955 then null; else raise; end if; end; / PROMPT *** ALTER_POLICIES to FINMON_QUE_VID2 *** exec bpa.alter_policies('FINMON_QUE_VID2'); COMMENT ON TABLE BARS.FINMON_QUE_VID2 IS '. '; COMMENT ON COLUMN BARS.FINMON_QUE_VID2.ID IS 'ID '; COMMENT ON COLUMN BARS.FINMON_QUE_VID2.VID IS ' '; COMMENT ON COLUMN BARS.FINMON_QUE_VID2.COMM IS ''; COMMENT ON COLUMN BARS.FINMON_QUE_VID2.KF IS ''; PROMPT *** Create constraint XPK_FINMONQUEVID2 *** begin execute immediate ' ALTER TABLE BARS.FINMON_QUE_VID2 ADD CONSTRAINT XPK_FINMONQUEVID2 PRIMARY KEY (ID, VID) USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS TABLESPACE BRSSMLI ENABLE'; exception when others then if sqlcode=-2260 or sqlcode=-2261 or sqlcode=-2264 or sqlcode=-2275 or sqlcode=-1442 then null; else raise; end if; end; / PROMPT *** Create constraint NK_FINMONQUEVID2_ID *** begin execute immediate ' ALTER TABLE BARS.FINMON_QUE_VID2 MODIFY (ID CONSTRAINT NK_FINMONQUEVID2_ID NOT NULL ENABLE)'; exception when others then if sqlcode=-2260 or sqlcode=-2261 or sqlcode=-2264 or sqlcode=-2275 or sqlcode=-1442 then null; else raise; end if; end; / PROMPT *** Create constraint NK_FINMONQUEVID2_VID *** begin execute immediate ' ALTER TABLE BARS.FINMON_QUE_VID2 MODIFY (VID CONSTRAINT NK_FINMONQUEVID2_VID NOT NULL ENABLE)'; exception when others then if sqlcode=-2260 or sqlcode=-2261 or sqlcode=-2264 or sqlcode=-2275 or sqlcode=-1442 then null; else raise; end if; end; / PROMPT *** Create constraint CC_FINMONQUEVID2_KF *** begin execute immediate ' ALTER TABLE BARS.FINMON_QUE_VID2 MODIFY (KF CONSTRAINT CC_FINMONQUEVID2_KF NOT NULL ENABLE)'; exception when others then if sqlcode=-2260 or sqlcode=-2261 or sqlcode=-2264 or sqlcode=-2275 or sqlcode=-1442 then null; else raise; end if; end; / PROMPT *** Create index XPK_FINMONQUEVID2 *** begin execute immediate ' CREATE UNIQUE INDEX BARS.XPK_FINMONQUEVID2 ON BARS.FINMON_QUE_VID2 (ID, VID) PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS TABLESPACE BRSSMLI '; exception when others then if sqlcode=-955 then null; else raise; end if; end; / PROMPT *** add order_id *** begin execute immediate 'alter table bars.finmon_que_vid2 add (order_id number)'; exception when others then if sqlcode = -955 or sqlcode = -1430 then null; else raise; end if; end; / comment on column bars.finmon_que_vid2.order_id is ' '; PROMPT *** Create grants FINMON_QUE_VID2 *** grant SELECT on FINMON_QUE_VID2 to BARSREADER_ROLE; grant DELETE,INSERT,SELECT,UPDATE on FINMON_QUE_VID2 to BARS_ACCESS_DEFROLE; grant SELECT on FINMON_QUE_VID2 to BARS_DM; grant ALTER,DEBUG,DELETE,FLASHBACK,INDEX,INSERT,ON COMMIT REFRESH,QUERY REWRITE,REFERENCES,SELECT,UPDATE on FINMON_QUE_VID2 to FINMON; grant SELECT on FINMON_QUE_VID2 to UPLD; PROMPT *** Create SYNONYM to FINMON_QUE_VID2 *** CREATE OR REPLACE PUBLIC SYNONYM FINMON_QUE_VID2 FOR BARS.FINMON_QUE_VID2; PROMPT ===================================================================================== PROMPT *** End *** ========== Scripts /Sql/BARS/Table/FINMON_QUE_VID2.sql =========*** End * PROMPT =====================================================================================
true
e6364da0d59ed8d67b111400e0e10d730aef97a0
SQL
adityamanocha/liquidemo
/src/main/db/sql/insertcommands.sql
UTF-8
1,123
2.921875
3
[]
no_license
--liquibase formatted sql --changeset devopsadmin:change_2 INSERT INTO emp(EmpId, EmpName, EmpMob) VALUES (1, "Aditya", 99606496); --changeset devopsadmin:change_3 INSERT INTO emp(EmpId, EmpName, EmpMob) VALUES (2, "Manocha", 99606497); INSERT INTO emp(EmpId, EmpName, EmpMob) VALUES (3, "Pawan", 99606494); --changeset devopsadmin:change_4 UPDATE emp SET EmpMob=99606495 WHERE EmpId=3; --changeset devopsadmin:change_5 INSERT INTO emp(EmpId, EmpName, EmpMob) VALUES (4, "Shabaz", 99606497); INSERT INTO emp(EmpId, EmpName, EmpMob) VALUES (5, "ABC", 99606494); INSERT INTO emp(EmpId, EmpName, EmpMob) VALUES (6, "PQR", 99606497); INSERT INTO emp(EmpId, EmpName, EmpMob) VALUES (7, "XYZ", 99606494); --changeset devopsadmin:change_6 runOnChange:true endDelimiter:# DROP PROCEDURE IF EXISTS sayHelloWorld; # CREATE PROCEDURE sayHelloWorld() BEGIN SELECT 'Hello World From a MySql Database!'; END # --changeset devopsadmin:change_7 INSERT INTO emp(EmpId, EmpName, EmpMob) VALUES (8, "Alok", 99606494); --changeset devopsadmin:change_8 INSERT INTO emp(EmpId, EmpName, EmpMob) VALUES (9, "Kartik", 99606494);
true
2c2080b0ea24689ae5485d1b857445e5492dd091
SQL
photoszzt/code_practice
/database/leetcode/s176.sql
UTF-8
124
3.140625
3
[]
no_license
select MAX(Employee.Salary) as SecondHighestSalary from Employee where Salary < (select max(Employee.Salary) from Employee)
true
d760ec838848e399cb1083235149766433b6b43c
SQL
LJLinga/FRAP_sd
/SQL Dumps/Dump20190320 (1)/facultyassocnew_documents.sql
UTF-8
3,665
3.078125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `facultyassocnew` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `facultyassocnew`; -- MySQL dump 10.13 Distrib 5.7.25, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: facultyassocnew -- ------------------------------------------------------ -- Server version 5.7.25-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `documents` -- DROP TABLE IF EXISTS `documents`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `documents` ( `documentId` int(11) NOT NULL AUTO_INCREMENT, `firstAuthorId` int(8) NOT NULL, `timeLastUpdated` datetime DEFAULT NULL, `timeFirstPosted` datetime DEFAULT CURRENT_TIMESTAMP, `lockedById` int(8) DEFAULT NULL, `availabilityId` int(1) NOT NULL DEFAULT '2', `statusedById` int(8) NOT NULL, `typeId` int(11) NOT NULL, `stepId` int(11) NOT NULL, `statusId` int(2) DEFAULT NULL, PRIMARY KEY (`documentId`), KEY `fk_documents_employee1_idx` (`firstAuthorId`), KEY `fk_documents_employee4_idx` (`lockedById`), KEY `fk_documents_employee2_idx` (`statusedById`), KEY `fk_documents_doc_type1_idx` (`typeId`), KEY `fk_documents_steps1_idx` (`stepId`), KEY `fk_documents_doc_status1_idx` (`statusId`), CONSTRAINT `fk_documents_doc_status1` FOREIGN KEY (`statusId`) REFERENCES `doc_status` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_documents_doc_type1` FOREIGN KEY (`typeId`) REFERENCES `doc_type` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_documents_employee1` FOREIGN KEY (`firstAuthorId`) REFERENCES `employee` (`EMP_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_documents_employee2` FOREIGN KEY (`statusedById`) REFERENCES `employee` (`EMP_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_documents_employee4` FOREIGN KEY (`lockedById`) REFERENCES `employee` (`EMP_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_documents_steps1` FOREIGN KEY (`stepId`) REFERENCES `steps` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=124 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `documents` -- LOCK TABLES `documents` WRITE; /*!40000 ALTER TABLE `documents` DISABLE KEYS */; INSERT INTO `documents` VALUES (121,11223344,NULL,'2019-03-20 16:36:40',NULL,2,11223344,1,1,1),(122,11223344,NULL,'2019-03-20 17:02:01',NULL,2,11223344,2,1,1),(123,11223344,NULL,'2019-03-20 17:04:54',11223344,1,11223344,99,999,99); /*!40000 ALTER TABLE `documents` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2019-03-20 18:45:11
true
dbd02e6b571a7e809446726747e2607492acb667
SQL
zhangfengqi937/SQL
/premiere.sql
UTF-8
3,976
3.21875
3
[]
no_license
CREATE TABLE Rep (RepNum CHAR(2) PRIMARY KEY, LastName CHAR(15), FirstName CHAR(15), Street CHAR(15), City CHAR(15), State CHAR(2), Zip CHAR(5), Commission DECIMAL(7,2), Rate DECIMAL(3,2) ) ; CREATE TABLE Customer (CustomerNum CHAR(3) PRIMARY KEY, CustomerName CHAR(35) NOT NULL, Street CHAR(15), City CHAR(15), State CHAR(2), Zip CHAR(5), Balance DECIMAL(8,2), CreditLimit DECIMAL(8,2), RepNum CHAR(2) ) ; CREATE TABLE Orders (OrderNum CHAR(5) PRIMARY KEY, OrderDate DATE, CustomerNum CHAR(3) ) ; CREATE TABLE Part (PartNum CHAR(4) PRIMARY KEY, Description CHAR(15), OnHand DECIMAL(4,0), Class CHAR(2), Warehouse CHAR(1), Price DECIMAL(6,2) ) ; CREATE TABLE OrderLine (OrderNum CHAR(5), PartNum CHAR(4), NumOrdered DECIMAL(3,0), QuotedPrice DECIMAL(6,2), PRIMARY KEY (OrderNum, PartNum) ) ; INSERT INTO Rep VALUES ('20','Kaiser','Valerie','624 Randall','Grove','FL','33321',20542.50,0.05); INSERT INTO Rep VALUES ('35','Hull','Richard','532 Jackson','Sheldon','FL','33553',39216.00,0.07); INSERT INTO Rep VALUES ('65','Perez','Juan','1626 Taylor','Fillmore','FL','33336',23487.00,0.05); INSERT INTO Customer VALUES ('148','Al''s Appliance and Sport','2837 Greenway','Fillmore','FL','33336',6550.00,7500.00,'20'); INSERT INTO CUSTOMER VALUES ('282','Brookings Direct','3827 Devon','Grove','FL','33321',431.50,10000.00,'35'); INSERT INTO CUSTOMER VALUES ('356','Ferguson''s','382 Wildwood','Northfield','FL','33146',5785.00,7500.00,'65'); INSERT INTO CUSTOMER VALUES ('408','The Everything Shop','1828 Raven','Crystal','FL','33503',5285.25,5000.00,'35'); INSERT INTO CUSTOMER VALUES ('462','Bargains Galore','3829 Central','Grove','FL','33321',3412.00,10000.00,'65'); INSERT INTO CUSTOMER VALUES ('524','Kline''s','838 Ridgeland','Fillmore','FL','33336',12762.00,15000.00,'20'); INSERT INTO CUSTOMER VALUES ('608','Johnson''s Department Store','372 Oxford','Sheldon','FL','33553',2106.00,10000.00,'65'); INSERT INTO CUSTOMER VALUES ('687','Lee''s Sport and Appliance','282 Evergreen','Altonville','FL','32543',2851.00,5000.00,'35'); INSERT INTO CUSTOMER VALUES ('725','Deerfield''s Four Seasons','282 Columbia','Sheldon','FL','33553',248.00,7500.00,'35'); INSERT INTO CUSTOMER VALUES ('842','All Season','28 Lakeview','Grove','FL','33321',8221.00,7500.00,'20'); INSERT INTO ORDERS VALUES ('21608','10/20/2007','148'); INSERT INTO ORDERS VALUES ('21610','10/20/2007','356'); INSERT INTO ORDERS VALUES ('21613','10/21/2007','408'); INSERT INTO ORDERS VALUES ('21614','10/21/2007','282'); INSERT INTO ORDERS VALUES ('21617','10/21/2007','608'); INSERT INTO ORDERS VALUES ('21619','10/23/2007','148'); INSERT INTO ORDERS VALUES ('21623','10/24/2007','608'); INSERT INTO PART VALUES ('AT94','Iron',50,'HW','3',24.95); INSERT INTO PART VALUES ('BV06','Home Gym',45,'SG','2',794.95); INSERT INTO PART VALUES ('CD52','Microwave Oven',32,'AP','1',165.00); INSERT INTO PART VALUES ('DL71','Cordless Drill',21,'HW','3',129.95); INSERT INTO PART VALUES ('DR93','Gas Range',8,'AP','2',495.00); INSERT INTO PART VALUES ('DW11','Washer',12,'AP','3',399.99); INSERT INTO PART VALUES ('FD21','Stand Mixer',22,'HW','3',159.95); INSERT INTO PART VALUES ('KL62','Dryer',12,'AP','1',349.95); INSERT INTO PART VALUES ('KT03','Dishwasher',8,'AP','3',595.00); INSERT INTO PART VALUES ('KV29','Treadmill',9,'SG','2',1390.00); INSERT INTO OrderLine VALUES ('21608','AT94',11,21.95); INSERT INTO OrderLine VALUES ('21610','DR93',1,495.00); INSERT INTO OrderLine VALUES ('21610','DW11',1,399.99); INSERT INTO OrderLine VALUES ('21613','KL62',4,329.95); INSERT INTO OrderLine VALUES ('21614','KT03',2,595.00); INSERT INTO OrderLine VALUES ('21617','BV06',2,794.95); INSERT INTO OrderLine VALUES ('21617','CD52',4,150.00); INSERT INTO OrderLine VALUES ('21619','DR93',1,495.00); INSERT INTO OrderLine VALUES ('21623','KV29',2,1290.00);
true
df9d447c539f3e2709238342cda6c8009c90243e
SQL
chrismesina14/CSE_572_Winter2020
/Labs/lab3.sql
WINDOWS-1252
6,120
4.25
4
[]
no_license
/* Christian Mesina (005319687) CSE 572 Lab 3 Created on 01/28/2020 */ /* Question 1: Create a query to display the last name, department number and department name for all employees. */ SELECT E.LAST_NAME, E.DEPARTMENT_ID, D.DEPARTMENT_NAME FROM HR.EMPLOYEES E INNER JOIN HR.DEPARTMENTS D ON E.DEPARTMENT_ID = D.DEPARTMENT_ID ORDER BY DEPARTMENT_ID DESC; /* Question 2: Create a unique listing of all jobs that in department 80. Include the location of the department in the output. */ SELECT DISTINCT E.JOB_ID, J.JOB_TITLE, D.LOCATION_ID, L.STREET_ADDRESS, L.POSTAL_CODE, L.CITY, L.STATE_PROVINCE, L.COUNTRY_ID FROM HR.EMPLOYEES E JOIN HR.JOBS J ON E.JOB_ID = J.JOB_ID JOIN HR.DEPARTMENTS D ON E.DEPARTMENT_ID = D.DEPARTMENT_ID JOIN HR.LOCATIONS L ON D.LOCATION_ID = L.LOCATION_ID WHERE E.DEPARTMENT_ID = 80; /* Question 3: Create a query to display the employees last name, department name, location ID and city of all employees who earn a commission. */ SELECT E.LAST_NAME, D.DEPARTMENT_NAME, D.LOCATION_ID, L.CITY FROM HR.EMPLOYEES E INNER JOIN HR.DEPARTMENTS D ON E.DEPARTMENT_ID = D.DEPARTMENT_ID INNER JOIN HR.LOCATIONS L ON D.LOCATION_ID = L.LOCATION_ID WHERE COMMISSION_PCT IS NOT NULL; /* Question 4: For each employee who has an a (lowercase) in his/her last name, display the employees last name and department name. */ SELECT E.LAST_NAME, D.DEPARTMENT_NAME FROM HR.EMPLOYEES E INNER JOIN HR.DEPARTMENTS D ON E.DEPARTMENT_ID = D.DEPARTMENT_ID WHERE LAST_NAME LIKE '%a%'; /* Question 5: Write a query that displays the last name, job, department number and department name for all employees who work in Toronto. */ SELECT E.LAST_NAME, J.JOB_TITLE, E.DEPARTMENT_ID, D.DEPARTMENT_NAME FROM HR.EMPLOYEES E INNER JOIN HR.DEPARTMENTS D ON E.DEPARTMENT_ID = D.DEPARTMENT_ID INNER JOIN HR.LOCATIONS L ON D.LOCATION_ID = L.LOCATION_ID INNER JOIN HR.JOBS J ON E.JOB_ID = J.JOB_ID WHERE L.CITY = 'Toronto'; /* Question 6: Create a query to display the employees last name and employee number along with his/her managers last name and manager number. Label the columns Employee, Emp#, Manager and Mgr#, respectively. */ SELECT E.LAST_NAME AS "Employee", E.EMPLOYEE_ID AS "Emp#", E.MANAGER_ID AS "Mgr#", M.LAST_NAME AS "Manager" FROM HR.EMPLOYEES E JOIN HR.EMPLOYEES M ON E.MANAGER_ID = M.EMPLOYEE_ID; /* Question 7: Modify Question 6 to display all employees including King, who has no manager. Order the results by the employee number. */ SELECT E.LAST_NAME AS "Employee", E.EMPLOYEE_ID AS "Emp#", E.MANAGER_ID AS "Mgr#", M.LAST_NAME AS "Manager" FROM HR.EMPLOYEES E LEFT OUTER JOIN HR.EMPLOYEES M ON E.MANAGER_ID = M.EMPLOYEE_ID ORDER BY E.EMPLOYEE_ID; /* Question 9: Create a query to display the name and hire date of any employee hired after Davies. */ SELECT E.FIRST_NAME, E.LAST_NAME, E.HIRE_DATE FROM HR.EMPLOYEES E JOIN HR.EMPLOYEES DAVIES ON DAVIES.LAST_NAME = 'Davies' WHERE DAVIES.HIRE_DATE < E.HIRE_DATE; /* Question 10: Display the names and hire dates for all employees who were hired before their managers, along with their managers names and hire dates. Label the columns Employee, Emp Hired, Manager, and Mgr Hired, respectively. */ SELECT E.FIRST_NAME || ' ' || E.LAST_NAME AS "Employee", E.HIRE_DATE AS "Emp Hired", M.FIRST_NAME || ' ' || M.LAST_NAME AS "Manager", M.HIRE_DATE AS "Mgr Hired" FROM HR.EMPLOYEES E JOIN HR.EMPLOYEES M ON E.MANAGER_ID = M.EMPLOYEE_ID WHERE E.HIRE_DATE < M.HIRE_DATE; /* Question 11: Create a view called EMPLOYEES_VU based on the employee numbers, employee names, and department numbers from the HR.EMPLOYEES table. Change the heading for the employee name to EMPLOYEE. After the view created, please write queries to answer following questions: a. Display the contents of the EMPLOYEES_VU view b. Select the view name and text from the USER_VIEWS data dictionary view. c. Using your EMPLOYEES_VU view, enter a query to display all employee names and department numbers. */ /* LAB03_11 Mesina, Christian */ CREATE OR REPLACE VIEW EMPLOYEES_VU AS SELECT FIRST_NAME || ' ' || LAST_NAME AS "EMPLOYEE", EMPLOYEE_ID, DEPARTMENT_ID FROM HR.EMPLOYEES; -- a. SELECT * FROM EMPLOYEES_VU; -- b. SELECT VIEW_NAME, TEXT FROM USER_VIEWS; -- c. SELECT EMPLOYEE, DEPARTMENT_ID FROM EMPLOYEES_VU; /* Question 12: Create a view named DEPT50 that contains the employee numbers, employee last names, and department numbers for all employees in department 50. Label the view columns EMPNO, EMPLOYEE and DEPTNO. Do not allow an employee to be re-assigned to another department through the view. After the view created, please write queries to answer following questions: a. Display the structure and contents of DEPT50 view. b. Select the view name and text from the USER_VIEWS data dictionary view. c. Attempt to re-assign Matos to department 80 by doing an update command. */ /* LAB03_12 Mesina, Christian */ CREATE OR REPLACE VIEW DEPT50 AS SELECT LAST_NAME AS "EMPLOYEE", EMPLOYEE_ID AS "EMPNO", DEPARTMENT_ID AS "DEPTNO" FROM HR.EMPLOYEES WHERE DEPARTMENT_ID = 50 WITH CHECK OPTION CONSTRAINT EMP_DEPT_50; -- a. SELECT * FROM DEPT50; -- b. SELECT VIEW_NAME, TEXT FROM USER_VIEWS; -- c. Update doesn't work because there is a constraint placed on the create query UPDATE DEPT50 SET DEPTNO = 80 WHERE EMPLOYEE = 'Matos';
true
4f79815c8005b1be7602508e34da9800bbe4551d
SQL
SneakoXU/TE-Pair-Exercise-Mod2Day4
/pair-exercises/constraints-and-transactions-exercises-pair.sql
UTF-8
2,665
4.40625
4
[]
no_license
-- Write queries to return the following: -- Make the following changes in the "world" database. -- 1. Add Superman's hometown, Smallville, Kansas to the city table. The -- countrycode is 'USA', and population of 45001. (Yes, I looked it up on -- Wikipedia.) INSERT INTO city (name, countrycode, district, population) VALUES ('Smallville', 'USA', 'Kansas', 45001); -- 2. Add Kryptonese to the countrylanguage table. Kryptonese is spoken by 0.0001 -- percentage of the 'USA' population. INSERT INTO countrylanguage (countrycode, language, isofficial, percentage) VALUES ('USA', 'Kryptonese', false, 0.0001); -- 3. After heated debate, "Kryptonese" was renamed to "Krypto-babble", change -- the appropriate record accordingly. UPDATE countrylanguage SET language = 'Krypto-babble' WHERE language = 'Kryptonese'; -- 4. Set the US captial to Smallville, Kansas in the country table. UPDATE country SET capital = (SELECT id FROM city WHERE name = 'Smallville') WHERE code = 'USA'; SELECT country.code, country.capital, city.name FROM city JOIN country ON country.capital = city.id WHERE city.name = 'Smallville'; -- 5. Delete Smallville, Kansas from the city table. (Did it succeed? Why?) DELETE FROM city WHERE name = 'Smallville'; -- Did not succeed because it violates the constraints of the key integrity -- 6. Return the US captial to Washington. UPDATE country SET capital = (SELECT id FROM city WHERE name = 'Washington') WHERE code = 'USA'; -- 7. Delete Smallville, Kansas from the city table. (Did it succeed? Why?) DELETE FROM city WHERE name = 'Smallville'; -- Succeeded because it is no longer referenced in the country table, which doesn't violate key integrity -- 8. Reverse the "is the official language" setting for all languages where the -- country's year of independence is within the range of 1800 and 1972 -- (exclusive). -- (590 rows affected) UPDATE countrylanguage SET isofficial = NOT isofficial FROM country WHERE country.code = countrylanguage.countrycode AND country.indepyear > 1800 AND country.indepyear < 1972; -- 9. Convert population so it is expressed in 1,000s for all cities. (Round to -- the nearest integer value greater than 0.) -- (4079 rows affected) UPDATE city SET population = population / 1000; -- 10. Assuming a country's surfacearea is expressed in square miles, convert it to -- square meters for all countries where French is spoken by more than 20% of the -- population. -- (7 rows affected) UPDATE country SET surfacearea = surfacearea / 3.2808 FROM countrylanguage cl WHERE cl.countrycode = code AND cl.language LIKE '_rench' AND cl.percentage > 20;
true
dca7b9efd223a273cf027a108e0bd86a33038dc5
SQL
BaymaxHWY/PersonManageSystem
/keshe.sql
UTF-8
7,062
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2018-06-05 12:29:52 -- 服务器版本: 5.7.21 -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `keshe` -- -- -------------------------------------------------------- -- -- 表的结构 `depart` -- CREATE TABLE `depart` ( `depart_id` int(11) NOT NULL, `depart_name` varchar(50) NOT NULL, `depart_master` varchar(50) NOT NULL, `depart_desc` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `depart` -- INSERT INTO `depart` (`depart_id`, `depart_name`, `depart_master`, `depart_desc`) VALUES (1, '市场部', '吴恕', '市场调查、推广'), (2, '生活部', '郭浩', '做饭'), (3, '研发部', '眼视力', '2222'), (4, '人事部', '谢永腾', '112'), (5, '财政部', '赋权', '1111'); -- -------------------------------------------------------- -- -- 表的结构 `log` -- CREATE TABLE `log` ( `id` int(11) NOT NULL, `user` varchar(120) NOT NULL, `ip` varchar(100) NOT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `user_desc` varchar(120) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `log` -- INSERT INTO `log` (`id`, `user`, `ip`, `date`, `user_desc`) VALUES (1, 'admin', '127.0.0.1:3000', '2018-06-05 11:22:07', '添加招聘信息'), (2, 'admin', '127.0.0.1:3000', '2018-06-05 11:22:48', '修改或添加新部门'), (3, 'admin', '127.0.0.1:3000', '2018-06-05 11:22:55', '修改或添加公司职员'), (4, 'admin', '127.0.0.1:3000', '2018-06-05 11:23:02', '修改或添加培训项目'), (5, 'admin', '127.0.0.1:3000', '2018-06-05 11:23:08', '修改或添加奖惩记录'), (6, 'admin', '127.0.0.1:3000', '2018-06-05 11:23:14', '删除公司职员'), (7, 'admin', '127.0.0.1:3000', '2018-06-05 12:14:04', '删除部门'), (8, 'admin', '127.0.0.1:3000', '2018-06-05 12:14:17', '删除招聘信息'), (9, 'admin', '127.0.0.1:3000', '2018-06-05 12:14:23', '删除培训项目'); -- -------------------------------------------------------- -- -- 表的结构 `recruit` -- CREATE TABLE `recruit` ( `recruit_id` int(11) NOT NULL, `name` varchar(120) NOT NULL, `intent_depart` varchar(120) NOT NULL, `intent_position` varchar(120) NOT NULL, `tel` int(20) NOT NULL, `qq` int(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `recruit` -- INSERT INTO `recruit` (`recruit_id`, `name`, `intent_depart`, `intent_position`, `tel`, `qq`) VALUES (8, '张五', '研发部', '组长', 123213, 321321), (9, '赵四', '研发部', '组长', 12321, 321312), (10, '妇权', '人事部', '普通员工', 1321, 21321); -- -------------------------------------------------------- -- -- 表的结构 `reward_punish` -- CREATE TABLE `reward_punish` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `type` varchar(100) NOT NULL, `money` int(21) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `reward_punish` -- INSERT INTO `reward_punish` (`id`, `name`, `type`, `money`) VALUES (2, '福泉', '惩罚', 2222), (3, '谢泳腾', '奖励', 200), (6, '吴恕', '奖励', 2), (7, '郭好', '惩罚', 222), (9, '谢泳腾', '奖励', 11); -- -------------------------------------------------------- -- -- 表的结构 `staff` -- CREATE TABLE `staff` ( `staff_id` int(11) NOT NULL, `name` varchar(120) NOT NULL, `position` varchar(120) NOT NULL, `depart` varchar(120) NOT NULL, `money` int(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `staff` -- INSERT INTO `staff` (`staff_id`, `name`, `position`, `depart`, `money`) VALUES (6, '吴恕', '副经理', '生活部', 8000), (7, '谢泳腾', '主管', '财政部', 5000), (10, '福泉', '普通员工', '生活部', 2000), (13, '赋权', '组长', '财政部', 3000); -- -------------------------------------------------------- -- -- 表的结构 `system` -- CREATE TABLE `system` ( `system_id` int(11) NOT NULL, `username` varchar(120) NOT NULL, `password` varchar(120) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `system` -- INSERT INTO `system` (`system_id`, `username`, `password`) VALUES (1, 'admin', 'admin123'), (2, 'admin2', 'admin'); -- -------------------------------------------------------- -- -- 表的结构 `train` -- CREATE TABLE `train` ( `id` int(11) NOT NULL, `train_name` varchar(120) NOT NULL, `train_place` varchar(120) NOT NULL, `train_num` int(20) NOT NULL, `train_dates` varchar(120) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `train` -- INSERT INTO `train` (`id`, `train_name`, `train_place`, `train_num`, `train_dates`) VALUES (11, 'javascript', '逸夫楼108', 100, '2018-06-05'), (12, 'ps', '草坪', 23, '2018-06-12'), (13, 'word', '教室101', 44, '2018-06-07'); -- -- Indexes for dumped tables -- -- -- Indexes for table `depart` -- ALTER TABLE `depart` ADD PRIMARY KEY (`depart_id`); -- -- Indexes for table `log` -- ALTER TABLE `log` ADD PRIMARY KEY (`id`); -- -- Indexes for table `recruit` -- ALTER TABLE `recruit` ADD PRIMARY KEY (`recruit_id`); -- -- Indexes for table `reward_punish` -- ALTER TABLE `reward_punish` ADD PRIMARY KEY (`id`); -- -- Indexes for table `staff` -- ALTER TABLE `staff` ADD PRIMARY KEY (`staff_id`); -- -- Indexes for table `system` -- ALTER TABLE `system` ADD PRIMARY KEY (`system_id`); -- -- Indexes for table `train` -- ALTER TABLE `train` ADD PRIMARY KEY (`id`); -- -- 在导出的表使用AUTO_INCREMENT -- -- -- 使用表AUTO_INCREMENT `depart` -- ALTER TABLE `depart` MODIFY `depart_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- 使用表AUTO_INCREMENT `log` -- ALTER TABLE `log` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- 使用表AUTO_INCREMENT `recruit` -- ALTER TABLE `recruit` MODIFY `recruit_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- 使用表AUTO_INCREMENT `reward_punish` -- ALTER TABLE `reward_punish` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- 使用表AUTO_INCREMENT `staff` -- ALTER TABLE `staff` MODIFY `staff_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- 使用表AUTO_INCREMENT `system` -- ALTER TABLE `system` MODIFY `system_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- 使用表AUTO_INCREMENT `train` -- ALTER TABLE `train` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
21fa2ce8d5aebc873fd80bc19657126666b0a711
SQL
roojs/Pman.Core
/sql/projectdirectory.sql
UTF-8
978
3.046875
3
[]
no_license
-- we duplicate office_id and company_id here... -- not sure if we should keep doing that in the new design... -- we should improve our links code to handle this.. CREATE TABLE ProjectDirectory ( id int(11) NOT NULL auto_increment, PRIMARY KEY (id) ) ; ALTER TABLE ProjectDirectory ADD COLUMN project_id int(11) NOT NULL DEFAULT 0; ALTER TABLE ProjectDirectory ADD COLUMN person_id int(11) NOT NULL DEFAULT 0; ALTER TABLE ProjectDirectory ADD COLUMN ispm int(11) NOT NULL DEFAULT 0; ALTER TABLE ProjectDirectory ADD COLUMN role varchar(32) NOT NULL DEFAULT ''; ALTER TABLE ProjectDirectory ADD COLUMN company_id int(11) NOT NULL DEFAULT 0; ALTER TABLE ProjectDirectory ADD COLUMN office_id int(11) NOT NULL DEFAULT 0; ALTER TABLE ProjectDirectory ADD INDEX plookup (project_id,person_id, ispm, role); ALTER TABLE ProjectDirectory ADD INDEX lookup_company_id (company_id); ALTER TABLE ProjectDirectory ADD INDEX lookup_person_id (person_id);
true
a2bea3c0083b56557b96e6dce4e6ef56dc6363fe
SQL
josepitteloud/VESPA
/ad_hoc/Product Analytics/Toolbox/SQL in General - Dynamic Week Numbering generation.sql
UTF-8
1,327
3.625
4
[]
no_license
/* A practical example to: Create buckets of N days relative to any starting date... The query shows the mechanics of how this works... */ with base as ( select thedate from ( select date('2017-03-09 00:00:00') as thedate union select date('2017-03-10 00:00:00') union select date('2017-03-11 00:00:00') union select date('2017-03-12 00:00:00') union select date('2017-03-13 00:00:00') union select date('2017-03-14 00:00:00') union select date('2017-03-15 00:00:00') union select date('2017-03-16 00:00:00') union select date('2017-03-17 00:00:00') union select date('2017-03-18 00:00:00') union select date('2017-03-19 00:00:00') union select date('2017-03-20 00:00:00') ) as base ) ,ref as ( select min(thedate) as the_start from base ) select thedate ,(extract(epoch from thedate - the_start)) as x ,(x/7)+1 as y ,(cast(x as float) / 7.00)+1 as y1 ,(x/3)+1 as z ,(cast(x as float) / 3.00)+1 as z1 ,(x/10)+1 as w ,(cast(x as float) / 10.00)+1 as w1 from base inner join ref on 1=1 ceil(datediff(timestamp(thedate),timestamp('2016-10-14'))/N) integer(15+ceil((datediff(timestamp(thedate),timestamp('2016-10-14'))+1)/7)) as Sky_week
true
f73d60b38fb5c189869dd80d485af374487a8f55
SQL
aakashmt97/SQL
/b72. UPDATE_values.sql
UTF-8
418
3.078125
3
[]
no_license
UPDATE account SET last_login = CURRENT_TIMESTAMP WHERE last_login IS NULL; SELECT * FROM account; UPDATE account_job SET hire_date = CURRENT_TIMESTAMP; SELECT * FROM account_job; UPDATE account_job SET hire_date = account.created_on FROM account WHERE account_job.user_id = account.user_id; SELECT * FROM account_job; UPDATE account SET last_login = CURRENT_TIMESTAMP RETURNING email, created_on, last_login
true
144c9c7f96287870adb1743f02ba09a0bae41b45
SQL
danziss/Bazy-danych-cwiczenia-MySQL
/salonSamochodowyNew.sql
UTF-8
6,266
3.90625
4
[]
no_license
CREATE TABLE marki_pojazdow( id int auto_increment not null, nazwa varchar(40) not null, kraj_pochodzenia varchar(40), data_dodania DATETIME, data_edycji DATETIME, PRIMARY KEY (id) ); CREATE TABLE modele( id int auto_increment not null, id_marki int not null, nazwa varchar(40) not null, rok_produkcji YEAR not null, cena int not null, data_dodania DATETIME, data_edycji DATETIME, PRIMARY KEY (id), FOREIGN KEY (id_marki) REFERENCES marki_pojazdow(id) ); CREATE TABLE Stanowisko( id int auto_increment not null, nazwa varchar(40) not null, zarobki int not null, data_dodania DATETIME, data_edycji DATETIME, PRIMARY KEY (id) ); CREATE TABLE Pracownicy( id int auto_increment not null, id_stanowiska int not null, imie varchar(40) not null, nazwisko varchar(40) not null, adres varchar(70) not null, nr_tel varchar(9) not null, data_dodania DATETIME, data_edycji DATETIME, primary key (id), foreign key (id_stanowiska) references Stanowisko(id) ); create table premie( id int auto_increment not null , id_pracownika int not null, id_modelu int not null, kwota double not null , data_dodania DATETIME, data_edycji DATETIME, PRIMARY KEY (id), foreign key (id_pracownika) references Pracownicy(id), foreign key (id_modelu) references modele(id) ); /*Dla każdej tabeli należy utworzyć minimum 3 wyzwalacze (po jednym dla poleceń INSERT, UPDATE oraz DELETE).*/ DELIMITER //; create trigger dodaj_marke after insert on marki_pojazdow for each row begin set NEW.data_dodania = now(); end; delimiter // ; create trigger edytuj_marke after update on marki_pojazdow for each row begin set NEW.data_edycji = now(); end; // delimiter //; create trigger usun_marke after delete on marki_pojazdow for each row begin set data_edycji = now(); end; delimiter //; create trigger dodaj_model after insert on modele for each row begin set NEW.data_dodania = now(); end; delimiter // ; create trigger edytuj_model after update on modele for each row begin set NEW.data_edycji = now(); end; // delimiter //; create trigger usun_model after delete on modele for each row begin set data_edycji = now(); end; delimiter //; create trigger dodaj_pracownika after insert on Pracownicy for each row begin set NEW.data_dodania = now(); end; delimiter // ; create trigger edytuj_pracownika after update on Pracownicy for each row begin set data_edycji = now(); end; // delimiter //; create trigger usun_pracownika after delete on Pracownicy for each row begin set data_edycji = now(); end; delimiter //; create trigger dodaj_stanowisko after insert on Stanowisko for each row begin set data_dodania = now(); end; delimiter // ; create trigger edytuj_stanowisko after update on Stanowisko for each row begin set data_edycji = now(); end; delimiter //; create trigger usun_stanowisko after delete on Stanowisko for each row begin set data_edycji = now(); end; delimiter //; create trigger premia_pracownika after insert on premie for each row begin set kwota = 0.02*kwota; end; delimiter // ; create trigger edytuj_premie after update on premie for each row begin set data_edycji = now(); end; // delimiter //; create trigger usun_premie after delete on premie for each row begin set data_edycji = now(); end; delimiter //; insert into marki_pojazdow (nazwa, kraj_pochodzenia) VALUES ('TOYOTA', 'Japonia'); insert into marki_pojazdow (nazwa, kraj_pochodzenia) VALUES ('NISSAN', 'Japonia'); insert into marki_pojazdow (nazwa, kraj_pochodzenia) VALUES ('AUDI', 'Niemcy'); insert into marki_pojazdow (nazwa, kraj_pochodzenia) VALUES ('VOLKSVAGEN', 'Niemcy'); insert into marki_pojazdow (nazwa, kraj_pochodzenia) VALUES ('BMW', 'Japonia'); insert into marki_pojazdow (nazwa, kraj_pochodzenia) VALUES ('FERRARI', 'Włochy'); insert into marki_pojazdow (nazwa, kraj_pochodzenia) VALUES ('FIAT', 'Włochy'); insert into marki_pojazdow (nazwa, kraj_pochodzenia) VALUES ('FORD', 'USA'); insert into marki_pojazdow (nazwa, kraj_pochodzenia) VALUES ('CHEVROLET', 'USA'); insert into modele (id_marki, nazwa, rok_produkcji, cena) VALUES (1, 'COROLLA', '2015', 68999); insert into modele (id_marki, nazwa, rok_produkcji, cena) VALUES (2, 'LEAF', '2014', 54999); insert into modele (id_marki, nazwa, rok_produkcji, cena) VALUES (3, 'A6', 2013, 88999); insert into modele (id_marki, nazwa, rok_produkcji, cena) VALUES (4, 'JETTA', 2018, 123999); insert into modele (id_marki, nazwa, rok_produkcji, cena) VALUES (5, 'X6', 2019, 299999); insert into modele (id_marki, nazwa, rok_produkcji, cena) VALUES (6, 'SP2', 2018, 1490000); insert into modele (id_marki, nazwa, rok_produkcji, cena) VALUES (7, 'MUSTANG', 2016, 125300); insert into modele (id_marki, nazwa, rok_produkcji, cena) VALUES (8, 'CAMARO', 2013, 98999); insert into Stanowisko (nazwa, zarobki) values ('Sprzedawca', 4000); insert into Stanowisko (nazwa, zarobki) values ('Konsultant', 4500); insert into Stanowisko (nazwa, zarobki) values ('Sprzatajacy', 2600); insert into Stanowisko (nazwa, zarobki) values ('Technik', 5000); insert into Pracownicy (id_stanowiska, imie, nazwisko, adres, nr_tel) VALUES (1, 'Magda', 'Wierak', 'Basztowa 4', '444555666'); insert into Pracownicy (id_stanowiska, imie, nazwisko, adres, nr_tel) VALUES (2, 'Juliusz', 'Ulman', 'Miodowa 45', '555444666'); insert into Pracownicy (id_stanowiska, imie, nazwisko, adres, nr_tel) VALUES (4, 'Daniel', 'Koszyk', 'Huculska 4/12', '787656048'); insert into Pracownicy (id_stanowiska, imie, nazwisko, adres, nr_tel) VALUES (3, 'Anna', 'Pajak', 'Rolna 12', '746692583'); insert into premie (id_pracownika, id_modelu, kwota) VALUES (1, 6, 1490000); insert into premie (id_pracownika, id_modelu, kwota) VALUES (1, 8, 98999); insert into premie (id_pracownika, id_modelu, kwota) VALUES (1, 1, 68999);
true
44672fb5a0b6e8e8e566c6e070c2767babb116bc
SQL
pavel-voinov/oracle-dba-workspace
/scripts/reports/by_schema/views.sql
UTF-8
402
3.03125
3
[ "MIT" ]
permissive
/* */ @reports/reports_header define schema=&1 column view_name format a30 heading "View name" column text_length format 99999990 heading "Length of query text" column status format a10 heading "Status" SELECT v.view_name, v.text_length, o.status FROM dba_views v, dba_objects o WHERE v.owner = '&schema' AND o.owner = v.owner AND o.object_type = 'VIEW' AND o.object_name = v.view_name ORDER BY 1 /
true
99ca35e6888e46fbacd407219422f3e34a5aa2e8
SQL
slzjw26/learn_Pthon
/杂项/test2.sql
UTF-8
262
2.984375
3
[ "MIT" ]
permissive
A: select S#, GRADE from SC where C# = 'C2'; B: select sname from S where sname like 'D%'; C: select S.sname, S.S# from S, SC, C where C.C# = SC.C# and SC.S# = S.S# and C.CNAME = 'Maths'; D: select SC.S# from SC, C where C.C# = SC.C# and C.C# in ('C2', 'C4');
true
b662ca992c488ed65431b72bdeee7ddfb514544c
SQL
thluiz/sam-apinode
/database/Database/Database/Stored Procedures/getDataForChangeOwnershipLength.sql
UTF-8
1,009
3.390625
3
[ "MIT" ]
permissive
CREATE procedure getDataForChangeOwnershipLength( @ownership_id int, @start_date datetime, @end_date datetime ) as begin select * into #incidents_to_be_reschudeled from vwLightIncident where id in (select id from incident where ownership_id = @ownership_id and date < @start_date) select * into #incidents_to_be_incorporated from vwLightIncident where id in (select id from incident where ownership_id != @ownership_id and date between @start_date and @end_date) select * into #actions_to_be_rescheduled from vwIncidentAction where id in (select ia.id from incident_action ia join incident_action_incident iai on iai.incident_id = ia.id where iai.incident_id = @ownership_id and treated_until < @start_date) end
true
50da66a872e28a5b2e15b83d15e5c658af533ce8
SQL
kkadusic/online-shop-database
/Scripts/create-tables.sql
UTF-8
7,256
3.796875
4
[]
no_license
CREATE TABLE Kontinent ( KontinentID NUMBER(10) NOT NULL, Naziv VARCHAR(100) NOT NULL, CONSTRAINT kontinent_pk PRIMARY KEY (KontinentID) ); CREATE TABLE Drzava ( DrzavaID CHAR(10) NOT NULL, KontinentID NUMBER(10) NOT NULL, Naziv VARCHAR (100) NOT NULL, CONSTRAINT DrzavaID_pk PRIMARY KEY (DrzavaID), CONSTRAINT KontinentID_fk FOREIGN KEY (KontinentID) REFERENCES Kontinent (KontinentID) ); CREATE TABLE Grad ( GradID NUMBER(10) NOT NULL, DrzavaID CHAR(10) NOT NULL, Naziv VARCHAR(100) NOT NULL, CONSTRAINT GradID_pk PRIMARY KEY (GradID), CONSTRAINT DrzavaID_fk FOREIGN KEY (DrzavaID) REFERENCES Drzava (DrzavaID) ); CREATE TABLE FizickoLice ( FizickoLiceID NUMBER(10) NOT NULL, GradID NUMBER(10) NOT NULL, Ime VARCHAR(100) NOT NULL, Prezime VARCHAR(100) NOT NULL, DatumRodjenja DATE NOT NULL, Adresa VARCHAR(100) NOT NULL, CONSTRAINT FizickoLiceID_pk PRIMARY KEY (FizickoLiceID), CONSTRAINT GradID_fk FOREIGN KEY (GradID) REFERENCES Grad (GradID) ); CREATE TABLE Kupac ( KupacID NUMBER(10) NOT NULL, FizickoLiceID NUMBER(10) NOT NULL, CONSTRAINT KupacID_pk PRIMARY KEY (KupacID), CONSTRAINT FizickoLiceID_fk FOREIGN KEY (FizickoLiceID) REFERENCES FizickoLice (FizickoLiceID) ); CREATE TABLE Racun ( RacunID NUMBER(10) NOT NULL, KupacID NUMBER(10) NOT NULL, DatumZakljucenja DATE NULL, CONSTRAINT RacunID_pk PRIMARY KEY (RacunID), CONSTRAINT KupacID_fk FOREIGN KEY (KupacID) REFERENCES Kupac (KupacID) ); CREATE TABLE PravnoLice ( PravnoLiceID NUMBER(10) NOT NULL, GradID NUMBER(10) NOT NULL, Ime VARCHAR(100) NOT NULL, Adresa VARCHAR(100) NOT NULL, CONSTRAINT PravnoLiceID_pk PRIMARY KEY (PravnoLiceID), CONSTRAINT GradID_fk1 FOREIGN KEY (GradID) REFERENCES Grad (GradID) ); CREATE TABLE Odjel ( OdjelID NUMBER(10) NOT NULL, SefID NUMBER(10), Naziv VARCHAR(100), CONSTRAINT OdjelID_pk PRIMARY KEY (OdjelID) ); CREATE TABLE Uposlenik ( UposlenikID NUMBER(10) NOT NULL, FizickoLiceID NUMBER(10) NOT NULL, OdjelID NUMBER(10) NOT NULL, DatumZaposlenja DATE NOT NULL, Plata NUMBER(10) NOT NULL, BrojRacuna CHAR(13) NOT NULL, BrojUgovora CHAR(10) NOT NULL, CONSTRAINT UposlenikID_pk PRIMARY KEY (UposlenikID), CONSTRAINT FizickoLiceID_fk1 FOREIGN KEY (FizickoLiceID) REFERENCES FizickoLice (FizickoLiceID), CONSTRAINT OdjelID_fk FOREIGN KEY (OdjelID) REFERENCES Odjel (OdjelID) ); ALTER TABLE Odjel ADD CONSTRAINT SefID_fk FOREIGN KEY (SefID) REFERENCES Uposlenik (UposlenikID); CREATE TABLE Ugovor ( UgovorID NUMBER(10) NOT NULL, PravnoLiceID NUMBER(10) NOT NULL, UposlenikID NUMBER(10) NOT NULL, BrojUgovora CHAR(10) NOT NULL, DatumPotpisivanja DATE NOT NULL, DatumRaskidanja DATE NOT NULL, CONSTRAINT UgovorID_pk PRIMARY KEY (UgovorID), CONSTRAINT PravnoLiceID_fk FOREIGN KEY (PravnoLiceID) REFERENCES PravnoLice (PravnoLiceID), CONSTRAINT UposlenikID_fk4 FOREIGN KEY (UposlenikID) REFERENCES Uposlenik (UposlenikID) ); CREATE TABLE KurirskaSluzba ( KurirskaSluzbaID NUMBER(10) NOT NULL, PravnoLiceID NUMBER(10) NOT NULL, CONSTRAINT KurirskaSluzbaID_pk PRIMARY KEY (KurirskaSluzbaID), CONSTRAINT PravnoLiceID_fk1 FOREIGN KEY (PravnoLiceID) REFERENCES PravnoLice (PravnoLiceID) ); CREATE TABLE Isporuka ( IsporukaID NUMBER(10) NOT NULL, KurirskaSluzbaID NUMBER(10) NOT NULL, DatumIsporuke DATE NOT NULL, CONSTRAINT IsporukaID_pk PRIMARY KEY (IsporukaID), CONSTRAINT KurirskaSluzbaID_fk FOREIGN KEY (KurirskaSluzbaID) REFERENCES KurirskaSluzba (KurirskaSluzbaID) ); CREATE TABLE StavkaIsporuke ( StavkaIsporukeID NUMBER(10) NOT NULL , IsporukaID NUMBER(10) NOT NULL, RacunID NUMBER(10) NOT NULL, CONSTRAINT StavkaIsporukeID_pk PRIMARY KEY (StavkaIsporukeID), CONSTRAINT IsporukaID_fk FOREIGN KEY (IsporukaID) REFERENCES Isporuka (IsporukaID), CONSTRAINT RacunID_fk FOREIGN KEY (RacunID) REFERENCES Racun (RacunID) ); CREATE TABLE Proizvodjac ( ProizvodjacID NUMBER(10) NOT NULL, PravnoLiceID NUMBER(10) NOT NULL, CONSTRAINT ProizvodjacID_pk PRIMARY KEY (ProizvodjacID), CONSTRAINT PravnoLiceID_fk2 FOREIGN KEY (PravnoLiceID) REFERENCES PravnoLice (PravnoLiceID) ); CREATE TABLE Kategorija ( KategorijaID NUMBER(10) PRIMARY KEY NOT NULL, NadkategorijaID NUMBER(10), Naziv VARCHAR(10) NOT NULL ); ALTER TABLE Kategorija ADD FOREIGN KEY(NadkategorijaID) REFERENCES Kategorija (KategorijaID); CREATE TABLE Skladiste ( SkladisteID NUMBER(10) NOT NULL, GradID NUMBER(10) NOT NULL, OdgovornaOsobaID NUMBER(10) NOT NULL, Naziv VARCHAR(100) NULL, Adresa VARCHAR (100) NOT NULL, CONSTRAINT SkladisteID_pk PRIMARY KEY (SkladisteID), CONSTRAINT GradID_fk2 FOREIGN KEY (GradID) REFERENCES Grad (GradID), CONSTRAINT OdgovornaOsobID_fk FOREIGN KEY (OdgovornaOsobaID) REFERENCES Uposlenik (UposlenikID) ); CREATE TABLE Proizvod ( ProizvodID NUMBER(10) NOT NULL, ProizvodjacID NUMBER(10) NOT NULL, KategorijaID NUMBER(10) NOT NULL, Naziv VARCHAR(100) NOT NULL, Cijena NUMBER(10) NOT NULL, MjeseciGarancije NUMBER(10) NULL, CONSTRAINT ProizvodID_pk PRIMARY KEY (ProizvodID), CONSTRAINT ProizvodjacID_fk FOREIGN KEY (ProizvodjacID) REFERENCES Proizvodjac (ProizvodjacID), CONSTRAINT KategorijaID_fk FOREIGN KEY (KategorijaID) REFERENCES Kategorija (KategorijaID) ); CREATE TABLE Popust ( PopustID NUMBER(10) NOT NULL, ProizvodID NUMBER(10) NOT NULL, ProcentualniPopust NUMBER(10) NOT NULL, Aktuelan NUMBER(5) NOT NULL, CONSTRAINT PopustID_pk PRIMARY KEY (PopustID), CONSTRAINT ProizvodID_fk FOREIGN KEY (ProizvodID) REFERENCES Proizvod (ProizvodID) ); CREATE TABLE Kolicina ( KolicinaID NUMBER(10) NOT NULL, SkladisteID NUMBER(10) NOT NULL, ProizvodID NUMBER(10) NOT NULL, KolicinaRobe NUMBER(10) NOT NULL, CONSTRAINT KolicinaID_pk PRIMARY KEY (KolicinaID), CONSTRAINT SkladisteID_fk FOREIGN KEY (SkladisteID) REFERENCES Skladiste (SkladisteID), CONSTRAINT ProizvodID_fk1 FOREIGN KEY (ProizvodID) REFERENCES Proizvod (ProizvodID) ); CREATE TABLE StavkaRacuna ( StavkaRacunaID NUMBER(10) NOT NULL, RacunID NUMBER(10) NOT NULL, ProizvodID NUMBER(10) NOT NULL, PopustID NUMBER(10) NOT NULL, KolicinaStavke NUMBER(10) NOT NULL, CijenaBezPopusta NUMBER(10) NOT NULL, CONSTRAINT StavkaRacunaID_pk PRIMARY KEY (StavkaRacunaID), CONSTRAINT RacunID_fk1 FOREIGN KEY (RacunID) REFERENCES Racun (RacunID), CONSTRAINT ProizvodID_fk2 FOREIGN KEY (ProizvodID) REFERENCES Proizvod (ProizvodID), CONSTRAINT PopustID_fk1 FOREIGN KEY (PopustID) REFERENCES Popust (PopustID) ); CREATE TABLE Garancija ( GarancijaID NUMBER(10) NOT NULL, StavkaRacunaID NUMBER(10) NOT NULL, DatumPocetka DATE NOT NULL, DatumIsteka DATE NOT NULL, CONSTRAINT GarancijaID_pk PRIMARY KEY (GarancijaID), CONSTRAINT StavkaRacunaID_fk1 FOREIGN KEY (StavkaRacunaID) REFERENCES StavkaRacuna (StavkaRacunaID) ); CREATE TABLE kolicina_audit ( KolicinaID NUMBER(10), SkladisteID NUMBER(10), ProizvodID NUMBER(10), KolicinaRobe NUMBER(10), Datum DATE, Username VARCHAR2(20) );
true
1628ad46d173e98367048e2a65346ee1408f949c
SQL
OlivierCoue/NamelessAPI
/sql/nameless_db.sql
UTF-8
3,923
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 07, 2016 at 10:48 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `nameless` -- -- -------------------------------------------------------- -- -- Table structure for table `message` -- CREATE TABLE IF NOT EXISTS `message` ( `id` int(11) NOT NULL AUTO_INCREMENT, `author_id` int(11) DEFAULT NULL, `message_thread_id` int(11) DEFAULT NULL, `type` int(11) NOT NULL, `messageText` longtext COLLATE utf8_unicode_ci NOT NULL, `createdDate` datetime NOT NULL, PRIMARY KEY (`id`), KEY `IDX_B6BD307FF675F31B` (`author_id`), KEY `IDX_B6BD307F8829462F` (`message_thread_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `message_image` ( `id` int(11) NOT NULL, `thumbnail_upload_dir` varchar(255) NOT NULL, `thumbnail_name` varchar(255) NOT NULL, `full_upload_dir` varchar(255) NOT NULL, `full_name` varchar(255) NOT NULL, `mime` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `message_thread` -- CREATE TABLE IF NOT EXISTS `message_thread` ( `id` int(11) NOT NULL AUTO_INCREMENT, `updatedDate` datetime NOT NULL, `createdDate` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE IF NOT EXISTS `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `current_message_thread_id` int(11) DEFAULT NULL, `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `state` int(11) NOT NULL, `searchRange` int(11) NOT NULL, `geoPoint` point, `createdDate` datetime NOT NULL, `socketId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_8D93D649DC19589B` (`current_message_thread_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `user_message_thread` -- CREATE TABLE IF NOT EXISTS `user_message_thread` ( `user_id` int(11) NOT NULL, `message_thread_id` int(11) NOT NULL, PRIMARY KEY (`user_id`,`message_thread_id`), KEY `IDX_6D820ED5A76ED395` (`user_id`), KEY `IDX_6D820ED58829462F` (`message_thread_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Constraints for dumped tables -- -- -- Constraints for table `message` -- ALTER TABLE `message` ADD CONSTRAINT `FK_B6BD307F8829462F` FOREIGN KEY (`message_thread_id`) REFERENCES `message_thread` (`id`), ADD CONSTRAINT `FK_B6BD307FF675F31B` FOREIGN KEY (`author_id`) REFERENCES `user` (`id`); -- -- Constraints for table `user` -- ALTER TABLE `user` ADD CONSTRAINT `FK_8D93D649DC19589B` FOREIGN KEY (`current_message_thread_id`) REFERENCES `message_thread` (`id`); -- -- Constraints for table `user_message_thread` -- ALTER TABLE `user_message_thread` ADD CONSTRAINT `FK_6D820ED58829462F` FOREIGN KEY (`message_thread_id`) REFERENCES `message_thread` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_6D820ED5A76ED395` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
b266abae738ab9202c098109d9b9fcc961dc1bcc
SQL
zavierjack1/Oracle_Docker
/Schemas/Zavier/Tables/tblCompany.sql
UTF-8
390
3.015625
3
[]
no_license
DECLARE v_count number; BEGIN select count(*) into v_count from ALL_TABLES where upper(owner) = 'ZAVIER' and upper(table_name) = 'TBLCOMPANY'; if v_count > 0 then execute immediate ('DROP TABLE ZAVIER.TBLCOMPANY'); end if; execute immediate ( 'CREATE TABLE tblCompany( COMPANY_NAME VARCHAR2(20), STOCK_PRICE NUMBER )' ); END; /
true
68bbf3cc0b6f8b7c50a0acce8d13f8c12b36addb
SQL
GeriTosti/books-lab03
/books3.sql
UTF-8
6,154
3.234375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win32 (AMD64) -- -- Host: localhost Database: books -- ------------------------------------------------------ -- Server version 5.7.12-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Current Database: `books` -- CREATE DATABASE /*!32312 IF NOT EXISTS*/ `books` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `books`; -- -- Table structure for table `authors` -- DROP TABLE IF EXISTS `authors`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `authors` ( `AuthorsID` int(11) NOT NULL AUTO_INCREMENT, `AuthorsFirstName` varchar(255) DEFAULT NULL, `AuthorsLastName` varchar(255) DEFAULT NULL, PRIMARY KEY (`AuthorsID`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `authors` -- LOCK TABLES `authors` WRITE; /*!40000 ALTER TABLE `authors` DISABLE KEYS */; INSERT INTO `authors` VALUES (1,'KRISTEN ','HANNAH'),(2,'LISA ','GENOVA'),(3,'KELLY ','PARSONS'),(4,'WALLY ','LAMB'),(5,'ELIE ','WIESEL'),(6,'JANET','FITCH'); /*!40000 ALTER TABLE `authors` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `books` -- DROP TABLE IF EXISTS `books`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `books` ( `booksID` int(11) NOT NULL AUTO_INCREMENT, `booksName` varchar(255) DEFAULT NULL, `booksType` varchar(25) DEFAULT NULL, `AuthorsID` int(11) DEFAULT NULL, PRIMARY KEY (`booksID`), KEY `AuthorsID` (`AuthorsID`), CONSTRAINT `books_ibfk_1` FOREIGN KEY (`AuthorsID`) REFERENCES `authors` (`AuthorsID`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `books` -- LOCK TABLES `books` WRITE; /*!40000 ALTER TABLE `books` DISABLE KEYS */; INSERT INTO `books` VALUES (1,'FIREFLY LANE','NOVEL',1),(2,'STILL ALICE','DRAMA',2),(3,'DOING HARM','NOVEL',3); /*!40000 ALTER TABLE `books` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cost` -- DROP TABLE IF EXISTS `cost`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cost` ( `costID` int(11) NOT NULL AUTO_INCREMENT, `BooksName` varchar(255) DEFAULT NULL, `BooksType` varchar(255) DEFAULT NULL, `AuthorsID` varchar(255) DEFAULT NULL, `AuthorsFirstName` varchar(255) DEFAULT NULL, `AuthorsLastName` varchar(255) DEFAULT NULL, `InventoryStock` varchar(255) DEFAULT NULL, `CostPurchase` varchar(255) DEFAULT NULL, PRIMARY KEY (`costID`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cost` -- LOCK TABLES `cost` WRITE; /*!40000 ALTER TABLE `cost` DISABLE KEYS */; INSERT INTO `cost` VALUES (1,'FIREFLY LANE','NOVEL','1','KRISTEN','HANNAH','12','20'),(2,'STILL ALICE','DRAMA','2','LISA','GENOVA','7','10'),(3,'DOING HARM','NOVEL','3','KELLY','PARSONS','102','15'); /*!40000 ALTER TABLE `cost` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `inventory` -- DROP TABLE IF EXISTS `inventory`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `inventory` ( `inventoryID` int(11) NOT NULL AUTO_INCREMENT, `booksID` int(11) DEFAULT NULL, `storeID` int(11) DEFAULT NULL, `inventoryStock` int(11) DEFAULT NULL, PRIMARY KEY (`inventoryID`), KEY `booksID` (`booksID`), KEY `storeID` (`storeID`), CONSTRAINT `inventory_ibfk_1` FOREIGN KEY (`booksID`) REFERENCES `books` (`booksID`), CONSTRAINT `inventory_ibfk_2` FOREIGN KEY (`storeID`) REFERENCES `stores` (`storeID`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `inventory` -- LOCK TABLES `inventory` WRITE; /*!40000 ALTER TABLE `inventory` DISABLE KEYS */; INSERT INTO `inventory` VALUES (1,1,1,12),(2,2,2,10),(3,3,3,6); /*!40000 ALTER TABLE `inventory` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `stores` -- DROP TABLE IF EXISTS `stores`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `stores` ( `storeID` int(11) NOT NULL AUTO_INCREMENT, `storeName` varchar(50) DEFAULT NULL, `storeType` varchar(25) DEFAULT NULL, PRIMARY KEY (`storeID`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `stores` -- LOCK TABLES `stores` WRITE; /*!40000 ALTER TABLE `stores` DISABLE KEYS */; INSERT INTO `stores` VALUES (1,'Amazon','Online'),(2,'Barnes & Noble','Store/Online'),(3,'2nd Chance Books','Store'); /*!40000 ALTER TABLE `stores` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-06-23 16:11:02
true
4947361e680a2967c9c38b42fee928ea146d67c9
SQL
janspicka/trash
/plsql/call_procedure.sql
UTF-8
284
2.96875
3
[]
no_license
set serveroutput on; declare -- GLOBAL emp employees%rowtype; begin get_employee(50,emp); dbms_output.put_line(emp.first_name || ' ' || emp.last_name || ' ' || emp.salary); exception when others then dbms_output.put_line('ERR: ' || sqlcode || ' '|| sqlerrm); end; /
true
01ef5b284aff299c2ab30d84e1edd96bce66cb02
SQL
Elpuma/SQL-DEV-FOLDER
/SQL for Data Analysis - Udacity/04 SQL Subqueries/13. Text Quiz WITH vs Subquery.sql
UTF-8
799
4.34375
4
[]
no_license
/* Your First WITH (CTE) The same question as you saw in your first subquery is provided here along with the solution. QUESTION: You need to find the average number of events for each channel per day.*/ WITH events AS ( SELECT DATE_TRUNC('day',occurred_at) AS day, channel, COUNT(*) as events FROM web_events GROUP BY 1,2) SELECT channel, AVG(events) AS average_events FROM events GROUP BY channel ORDER BY 2 DESC ; --Select all of the below that are true regarding WITH statements. X When creating multiple tables using **WITH**, you add a comma after every table except the last table leading to your final query. X The new table name is always aliased using `table_name AS`, which is followed by your query nested between parentheses.
true
03bfabb1190a35840c4c8dc979c8f16eee712679
SQL
RedisGraph/ldbc_snb_implementations
/umbra/queries/interactive-complex-10.sql
UTF-8
1,949
4.4375
4
[ "Apache-2.0" ]
permissive
/* Q10. Friend recommendation \set personId 17592186044461 \set month 5 */ SELECT Person.id, firstName, lastName, ( SELECT count(DISTINCT Message.id) FROM Message, Message_hasTag_Tag pt1 WHERE CreatorPersonId = Person.id AND ParentMessageId IS NULL -- post, not comment AND Message.id = pt1.id AND EXISTS ( SELECT * FROM Person_hasInterest_Tag WHERE Person_hasInterest_Tag.PersonId = :personId AND Person_hasInterest_Tag.TagId = pt1.TagId ) ) - ( SELECT count(*) FROM Message WHERE CreatorPersonId = Person.id AND ParentMessageId IS NULL -- post, not comment AND NOT EXISTS ( SELECT * FROM Person_hasInterest_Tag, Message_hasTag_Tag WHERE Person_hasInterest_Tag.PersonId = :personId AND Person_hasInterest_Tag.TagId = Message_hasTag_Tag.TagId AND Message_hasTag_Tag.id = Message.id ) ) AS commonInterestScore, gender, City.name FROM Person, City, ( SELECT DISTINCT k2.Person2Id FROM Person_knows_Person k1, Person_knows_Person k2 WHERE k1.Person1Id = :personId AND k1.Person2Id = k2.Person1Id AND k2.Person2Id <> :personId AND NOT EXISTS ( SELECT * FROM Person_knows_Person WHERE Person1Id = :personId AND Person2Id = k2.Person2Id ) ) f WHERE LocationCityId = City.id AND Person.id = f.Person2Id AND ( (extract(month FROM birthday) = :month AND (CASE WHEN extract(day FROM birthday) >= 21 THEN true ELSE false END)) OR (extract(month FROM birthday) = :month % 12 + 1 AND (CASE WHEN extract(day FROM birthday) < 22 THEN true ELSE false END)) ) ORDER BY commonInterestScore DESC, Person.id LIMIT 10 ;
true
98881844c2fe10a280679e276f74a6b5aa527902
SQL
GemsTracker/gemstracker-library
/configs/db/tables/gems__track_appointments.100.sql
UTF-8
2,145
3.578125
4
[ "BSD-3-Clause" ]
permissive
CREATE TABLE if not exists gems__track_appointments ( gtap_id_app_field bigint unsigned not null auto_increment, gtap_id_track int unsigned not null references gems__tracks (gtr_id_track), gtap_id_order int not null default 10, gtap_field_name varchar(200) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null, gtap_field_code varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, gtap_field_description varchar(200) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, gtap_to_track_info boolean not null default true, gtap_track_info_label boolean not null default false, gtap_required boolean not null default false, gtap_readonly boolean not null default false, gtap_filter_id bigint unsigned null references gems__appointment_filters (gaf_id), -- deprecated gtap_after_next boolean not null default 1, -- deprecated gtap_min_diff_length int not null default 1, gtap_min_diff_unit char(1) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null default 'D', gtap_max_diff_exists boolean not null default 0, gtap_max_diff_length int not null default 0, gtap_max_diff_unit char(1) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null default 'D', gtap_uniqueness tinyint unsigned not null default 0, gtap_create_track int not null default 0, gtap_create_wait_days bigint signed not null default 182, gtap_changed timestamp not null default current_timestamp on update current_timestamp, gtap_changed_by bigint unsigned not null, gtap_created timestamp not null, gtap_created_by bigint unsigned not null, PRIMARY KEY (gtap_id_app_field), INDEX (gtap_id_track), INDEX (gtap_id_order) ) ENGINE=InnoDB AUTO_INCREMENT = 80000 CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
true
135bb2c79a93847e37da2010465321c9f6a2456e
SQL
LyudaBo/Java-Developer
/Homework1/5.sql
UTF-8
293
4.28125
4
[]
no_license
SELECT customers.CUSTOMER_NAME, min(cost) as min_income FROM (SELECT CUSTOMER_ID, COMPANY_ID, min(cost) AS cost FROM projects GROUP BY CUSTOMER_ID, COMPANY_ID) AS t1 LEFT JOIN customers ON t1.CUSTOMER_ID = customers.CUSTOMER_ID GROUP BY CUSTOMER_NAME;
true
4de2a081e6c567b4389cd9d017e922eeace509c2
SQL
rohithreddy197/DBMS_Assignments
/SQL_QUERY_ASSIGNMENT_PT2/Sci-fiJonStevens.sql
UTF-8
345
3.4375
3
[]
no_license
select count(distinct f.title) from film f join film_category fc on f.film_id=fc.film_id join category c on fc.category_id=c.category_id join inventory i on i.film_id=fc.film_id join rental r on i.inventory_id=r.inventory_id join staff s on r.staff_id=s.staff_id where c.name="sci-fi" and s.first_name="Jon" and s.last_name="Stephens";
true
7aa8784eacf4fe7813fdd37124f36679916c6a40
SQL
gavoneill6/Advanced-Databases
/Assignment/SQL code tips/TestConversionRainfallDublin.sql
UTF-8
684
2.78125
3
[]
no_license
SELECT Location_Code ,Location ,Year_Month ,CAST(SUBSTRING(Year_Month, 1, 4) AS INT) ,CASE SUBSTRING(Year_Month, 5, 3) WHEN 'M01' THEN 1 WHEN 'M02' THEN 2 WHEN 'M03' THEN 3 WHEN 'M04' THEN 4 WHEN 'M05' THEN 5 WHEN 'M06' THEN 6 WHEN 'M07' THEN 7 WHEN 'M08' THEN 8 WHEN 'M09' THEN 9 WHEN 'M10' THEN 10 WHEN 'M11' THEN 11 WHEN 'M12' THEN 12 ELSE NULL END ,Total_Rainfall_Millimetres ,Most_Rainfall_in_a_Day_Millimetres ,Number_of_Raindays FROM RAINFALL_000_DataTakeOn.dbo.r_RainFallDublin;
true
ff55a6554f75b99b483d743304b271bb6fea62a6
SQL
Southbay-CityChurch/crossings-community
/sermons/__lib/tests/frameworks/active_record_test.sql
UTF-8
253
2.828125
3
[ "MIT" ]
permissive
drop table if exists products; create table products ( id int not null auto_increment, name varchar(255) not null, product_id int not null, quantity int not null default 0, unit_price decimal(10,2) not null, primary key (id) );
true
e7669850fda94b7fc9b3208b221259b28033db96
SQL
noelvalentin/ICOM5016-P3
/schema.sql
UTF-8
1,178
3.421875
3
[]
no_license
create table Users(uid serial primary key, first_name varchar(20), last_name varchar(30), phone char(10), email varchar(50), password varchar(20)); create table ContactList(uid integer references Users(uid), cid integer references Users(uid), primary key(uid, cid)); create table Message(mid serial primary key, image varchar(255), text varchar(140), date char(10), uid integer references Users(uid), gid integer references ChatGroup(gid), oid integer references Message(mid)); create table Likes(uid integer references Users(uid), mid integer references Message(mid), date char(10), primary key(uid, mid)); create table Dislikes(uid integer references User(suid), mid integer references Message(mid), date char(10), primary key(uid, mid)); create table ChatGroup(gid serial primary key, gname varchar(20), uid integer references Users(uid)); create table isMember(uid integer references Users(uid), gid integer references ChatGroup(gid), primary key(uid, gid)); create table Hashtag(hid serial primary key, tag varchar(20)); create table Tagged(hid integer references Hashtag(hid), mid integer references Message(mid), primary key(hid, mid));
true
3383a665ec4c528527eac2eb55d53743c6f9885e
SQL
vietduc030496/VTI-Java07-08
/TUAN.phamvan2/sql/Assignment-SQL-6.sql
UTF-8
6,187
4.28125
4
[]
no_license
-- Q1 DROP PROCEDURE IF EXISTS input_dept; DELIMITER // CREATE PROCEDURE input_dept(IN department_name VARCHAR(45)) BEGIN SELECT * FROM `account` acct INNER JOIN ( SELECT * FROM ( SELECT d.DepartmentID, d.DepartmentName FROM `account` a INNER JOIN `department` d ON d.DepartmentID = a.DepartmentID GROUP BY d.DepartmentName, d.DepartmentID ) AS tb1 WHERE tb1.DepartmentName = department_name ) AS tb2 ON tb2.DepartmentID = acct.DepartmentID; END// DELIMITER ; -- use CALL input_dept ('Sale'); SELECT *; -- Q2 DROP PROCEDURE IF EXISTS get_number_of_employee_each_group; DELIMITER // CREATE PROCEDURE get_number_of_employee_each_group() BEGIN SELECT g.GroupID, g.GroupName, count(g.GroupID) as 'So luong' FROM `group` g INNER JOIN groupaccount ga ON ga.GroupID = g.GroupID GROUP BY g.GroupID; END// DELIMITER ; -- use CALL get_number_of_employee_each_group(); SELECT *; -- Q3 DROP PROCEDURE IF EXISTS statistic_question; DELIMITER // CREATE PROCEDURE statistic_question(IN this_month VARCHAR(4)) BEGIN SELECT tq.TypeID, tq.TypeName, count(tq.TypeID) as 'So luong' FROM `typequestion` tq INNER JOIN `question` q ON tq.TypeID = q.TypeID AND MONTH(q.CreateDate) = this_month GROUP BY q.TypeID; END// DELIMITER ; -- use CALL statistic_question('04'); SELECT *; -- Q4 DROP PROCEDURE IF EXISTS type_question_max; DELIMITER // CREATE PROCEDURE type_question_max(OUT type_id_max INT) BEGIN SELECT q.TypeID INTO type_id_max FROM `question` q GROUP BY q.TypeID ORDER BY COUNT(q.TypeID) DESC LIMIT 1; END// DELIMITER ; -- use SET @type_id_max = ''; CALL type_question_max(@type_id_max); SELECT @type_id_max LIMIT 1; -- Q5 DROP PROCEDURE IF EXISTS name_question_max; DELIMITER // CREATE PROCEDURE name_question_max() BEGIN SET @type_id_max = ''; CALL type_question_max(@type_id_max); SELECT TQ.TypeName FROM `typequestion` tq WHERE tq.TypeID IN ( SELECT @type_id_max ); END// DELIMITER ; -- use CALL name_question_max(); SELECT *; -- Q6 DROP PROCEDURE IF EXISTS str_group_or_name; DELIMITER // CREATE PROCEDURE str_group_or_name(IN str VARCHAR(45)) BEGIN SELECT g.GroupName FROM `group` g WHERE g.GroupName LIKE concat('%', str, '%') UNION SELECT a.Fullname FROM `account` a WHERE a.Fullname LIKE concat('%', str, '%'); END// DELIMITER ; -- use CALL str_group_or_name('sa'); SELECT *; -- Q7 DROP PROCEDURE IF EXISTS create_acct; DELIMITER // CREATE PROCEDURE create_acct(INOUT fullname VARCHAR(45), INOUT email VARCHAR(45), OUT username VARCHAR(45), OUT pos_id INT, OUT dept_id INT) BEGIN SET username = (SELECT SUBSTRING_INDEX(email, '@', 1)); SET pos_id = ( SELECT p.PositionID FROM `position` p WHERE p.PositionName = 'Dev' ); SET dept_id = ( SELECT d.DepartmentID FROM `department` d WHERE d.DepartmentName = 'default' ); END// DELIMITER ; -- use SET @fullname = 'Pham Van Tuan'; SET @email = 'tuanpv2406@gmail.com'; SET @username = '', @pos_id = '', @dept_id = ''; CALL create_acct(@fullname, @email, @username, @pos_id, @dept_id); SELECT @username, @pos_id, @dept_id; -- Q8 DROP PROCEDURE IF EXISTS longgest_content; DELIMITER // CREATE PROCEDURE longgest_content(IN type_name VARCHAR(45)) BEGIN SELECT fil.Content FROM ( SELECT q.* FROM `question` q INNER JOIN `typequestion` tq ON q.TypeID = tq.TypeID WHERE tq.TypeName = type_name ) as fil ORDER BY length(fil.Content) DESC LIMIT 1; END// DELIMITER ; -- use SET @type_name = 'Multiple-Choice'; CALL longgest_content(@type_name); SELECT *; -- Q9 DROP PROCEDURE IF EXISTS delete_exam_by_id; DELIMITER // CREATE PROCEDURE delete_exam_by_id(IN exam_id INT) BEGIN DECLARE exam_table_row INT DEFAULT 0; DECLARE exam_question_table_row INT DEFAULT 0; DELETE FROM `examquestion` eq WHERE eq.ExamID = exam_id; SET exam_question_table_row = (SELECT ROW_COUNT()); DELETE FROM `exam` e WHERE e.ExamID = exam_id; SET exam_table_row = (SELECT ROW_COUNT()); END// DELIMITER ; -- use SET @exam_id = 1; CALL delete_exam_by_id(@exam_id); -- Q10 DROP PROCEDURE IF EXISTS delete_exam_follow_year; DELIMITER // CREATE PROCEDURE delete_exam_follow_year(IN year_exam VARCHAR(45), OUT exam_id INT) BEGIN SELECT e.ExamID INTO exam_id FROM `exam` e WHERE e.CreateDate like CONCAT(year_exam,'%') LIMIT 1; END// DELIMITER ; -- use SET @exam_id = ''; CALL delete_exam_follow_year('2020',@exam_id); CALL delete_exam_by_id(@exam_id); SELECT ROW_COUNT() as 'SL record bi xoa'; -- Q11 DROP PROCEDURE IF EXISTS delete_department; DELIMITER // CREATE PROCEDURE delete_department(IN dept_name VARCHAR(45)) BEGIN DECLARE dept_id INT DEFAULT ( SELECT d.DepartmentID FROM `department` d WHERE d.DepartmentName = dept_name ); DECLARE dept_id_default INT DEFAULT ( SELECT d.DepartmentID FROM `department` d WHERE d.DepartmentName = 'default' ); UPDATE `account` a SET a.DepartmentID = dept_id_default WHERE a.DepartmentID = dept_id; DELETE FROM `department` d WHERE d.DepartmentID = dept_id; END// DELIMITER ; -- use CALL delete_department("Marketing"); -- Q12 DROP PROCEDURE IF EXISTS question_created_per_month; DELIMITER // CREATE PROCEDURE question_created_per_month() BEGIN SELECT MONTH(q.CreateDate) 'Thang', count(q.QuestionID) 'So luong' FROM `question` q WHERE YEAR(q.CreateDate) = YEAR(CURDATE()) GROUP BY MONTH(q.CreateDate) ORDER BY MONTH(q.CreateDate); END// DELIMITER ; -- use CALL question_created_per_month(); SELECT *; -- Q13 DROP PROCEDURE IF EXISTS count_question_by_6_month; DELIMITER // CREATE PROCEDURE count_question_by_6_month() BEGIN SELECT MONTH(q.CreateDate) 'Thang', count(q.QuestionID) 'So luong' FROM `question` q WHERE q.CreateDate >= DATE_SUB(CURDATE(),INTERVAL 6 MONTH) GROUP BY MONTH(q.CreateDate) ORDER BY MONTH(q.CreateDate); END// DELIMITER ; -- use CALL count_question_by_6_month(); SELECT *;
true
aa19d97e5ed1a8ab1d401b1a336d11b6797127e3
SQL
celestelayne/react-backend-starter-code
/database/seed.sql
UTF-8
430
2.765625
3
[]
no_license
\c moviesdb DELETE FROM movies; DELETE FROM favorites; INSERT INTO movies VALUES (DEFAULT, 'Guardians of the Galaxy Volume 2', 2017, 'PG-13', '136 min', 'Action'); INSERT INTO movies VALUES (DEFAULT, '12 Angry Men', 1957, 'PG-13', '96 min', 'Drama'); INSERT INTO movies VALUES (DEFAULT, 'Inception', 2010, 'PG-13', '148 min', 'Action'); INSERT INTO favorites VALUES (DEFAULT, 'The Matrix', 1999, 'PG-13', '136 min', 'Sci-Fi');
true
117468f36fc67175f211dd13318ad7e4bc533ee9
SQL
david32145/test-docs
/server/dump.sql
UTF-8
10,690
3.09375
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 11.7 (Ubuntu 11.7-0ubuntu0.19.10.1) -- Dumped by pg_dump version 11.7 (Ubuntu 11.7-0ubuntu0.19.10.1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: hibernate_sequence; Type: SEQUENCE; Schema: public; Owner: postgres -- CREATE SEQUENCE public.hibernate_sequence START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.hibernate_sequence OWNER TO postgres; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: project_members; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.project_members ( project_id bigint NOT NULL, user_id bigint NOT NULL ); ALTER TABLE public.project_members OWNER TO postgres; -- -- Name: projects; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.projects ( id bigint NOT NULL, description character varying(255), github_uri character varying(255), image_uri character varying(255), name character varying(255), owner_id bigint ); ALTER TABLE public.projects OWNER TO postgres; -- -- Name: projects_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- ALTER TABLE public.projects ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( SEQUENCE NAME public.projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1 ); -- -- Name: test_cases; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.test_cases ( id bigint NOT NULL, description character varying(255), title character varying(255), test_suite_id bigint NOT NULL, test_case_status integer ); ALTER TABLE public.test_cases OWNER TO postgres; -- -- Name: test_cases_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- ALTER TABLE public.test_cases ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( SEQUENCE NAME public.test_cases_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1 ); -- -- Name: test_requests; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.test_requests ( id bigint NOT NULL, released_timestamp bigint NOT NULL, status integer, version character varying(255), project_id bigint NOT NULL, requesting_user_id bigint, tester_user_id bigint ); ALTER TABLE public.test_requests OWNER TO postgres; -- -- Name: test_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- ALTER TABLE public.test_requests ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( SEQUENCE NAME public.test_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1 ); -- -- Name: test_suites; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.test_suites ( id bigint NOT NULL, description character varying(255), title character varying(255), test_request_id bigint NOT NULL ); ALTER TABLE public.test_suites OWNER TO postgres; -- -- Name: test_suites_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres -- ALTER TABLE public.test_suites ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( SEQUENCE NAME public.test_suites_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1 ); -- -- Name: users; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE public.users ( id bigint NOT NULL, avatar_uri character varying(255), description character varying(255), email character varying(255), name character varying(255), office character varying(255), password_hash character varying(255) ); ALTER TABLE public.users OWNER TO postgres; -- -- Data for Name: project_members; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.project_members (project_id, user_id) FROM stdin; 1 2 3 3 \. -- -- Data for Name: projects; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.projects (id, description, github_uri, image_uri, name, owner_id) FROM stdin; 2 Uber app https://github.com/luiz-classrooms/topicos-15-17-david32145 http://api.adorable.io/avatars/256/abott@adorable.png Uber 1 1 Uber app2 https://github.com/luiz-classrooms/topicos-15-17-david32145 http://localhost:8080/api/images/12b54980-b47c-4b1f-a976-e2232e96470f-WhatsApp_Image_2020-10-30_at_16.18.21.jpeg Nubank 1 3 Empresa de transporte de veículoes https://github.com/uber/uber2 http://localhost:8080/api/images/c2badb19-f74f-4d83-9a24-9432a01ba486-Uber-Asset-Logo-34.jpg Rafael veículos 2 2 \. -- -- Data for Name: test_cases; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.test_cases (id, description, title, test_suite_id, test_case_status) FROM stdin; 1 Descrição do caso de teste Novo caso de deste 1 \N 2 Descrição do caso de teste Novo caso de deste 1 \N 3 Descrição do caso de teste Novo caso de deste 1 \N 4 Descrição do caso de teste Novo caso de deste 3 \N 8 Nova descrição agora vai 16:30 Caso de teste da suite 5 5 0 6 Descrição do caso de teste Novo caso de deste 4 0 7 Descrição do caso de teste bachjbaschbshjbchjcbjahcbsjh Novo caso de deste edbcejnscjnsaknscjnkjcsnsjknckjnas 4 0 5 Descrição do caso de teste Novo caso de deste 4 0 9 vd ddcdvf 4 0 10 svvsvsvs scdcsdvs 4 0 11 jnkndjncdkncdkjncdjk Para da errado 5 1 12 Novo Novo 5 0 \. -- -- Data for Name: test_requests; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.test_requests (id, released_timestamp, status, version, project_id, requesting_user_id, tester_user_id) FROM stdin; 1 0 \N v1.1 2 1 2 3 0 2 v1.2 3 2 3 4 0 \N v2.34 3 2 3 \. -- -- Data for Name: test_suites; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.test_suites (id, description, title, test_request_id) FROM stdin; 1 Descrição da suite Nova suite 1 2 Descrição da suite Nova suite 1 3 Descrição da suite Nova suite 1 4 Descrição da suite Nova suite 3 5 Descrição da suite de teste Nova suite 22 3 8 nknjknkjn Minha suite 4 \. -- -- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: postgres -- COPY public.users (id, avatar_uri, description, email, name, office, password_hash) FROM stdin; 1 https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png Um programador amanda@gmail.com David Nascimento development 1234567 2 https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png Um programador rafael@gmail.com Rafael vieira barbosa development 1234567 3 https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png Um programador david32145@gmail.com David Nascimento development 1234567 \. -- -- Name: hibernate_sequence; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.hibernate_sequence', 3, true); -- -- Name: projects_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.projects_id_seq', 3, true); -- -- Name: test_cases_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.test_cases_id_seq', 12, true); -- -- Name: test_requests_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.test_requests_id_seq', 5, true); -- -- Name: test_suites_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres -- SELECT pg_catalog.setval('public.test_suites_id_seq', 8, true); -- -- Name: projects projects_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.projects ADD CONSTRAINT projects_pkey PRIMARY KEY (id); -- -- Name: test_cases test_cases_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.test_cases ADD CONSTRAINT test_cases_pkey PRIMARY KEY (id); -- -- Name: test_requests test_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.test_requests ADD CONSTRAINT test_requests_pkey PRIMARY KEY (id); -- -- Name: test_suites test_suites_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.test_suites ADD CONSTRAINT test_suites_pkey PRIMARY KEY (id); -- -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.users ADD CONSTRAINT users_pkey PRIMARY KEY (id); -- -- Name: test_cases fkd7dq181egbh693wpw3cu8i02x; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.test_cases ADD CONSTRAINT fkd7dq181egbh693wpw3cu8i02x FOREIGN KEY (test_suite_id) REFERENCES public.test_suites(id); -- -- Name: project_members fkdki1sp2homqsdcvqm9yrix31g; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.project_members ADD CONSTRAINT fkdki1sp2homqsdcvqm9yrix31g FOREIGN KEY (project_id) REFERENCES public.projects(id); -- -- Name: project_members fkgul2el0qjk5lsvig3wgajwm77; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.project_members ADD CONSTRAINT fkgul2el0qjk5lsvig3wgajwm77 FOREIGN KEY (user_id) REFERENCES public.users(id); -- -- Name: test_requests fkkxmylvre94l0ncio0wbh76115; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.test_requests ADD CONSTRAINT fkkxmylvre94l0ncio0wbh76115 FOREIGN KEY (requesting_user_id) REFERENCES public.users(id); -- -- Name: test_requests fkm4sq0ofndoe7cvc6sa7cdr6y; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.test_requests ADD CONSTRAINT fkm4sq0ofndoe7cvc6sa7cdr6y FOREIGN KEY (project_id) REFERENCES public.projects(id); -- -- Name: projects fkmueqy6cpcwpfl8gnnag4idjt9; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.projects ADD CONSTRAINT fkmueqy6cpcwpfl8gnnag4idjt9 FOREIGN KEY (owner_id) REFERENCES public.users(id); -- -- Name: test_requests fknqjc4we34e4wifcywdldj6rd5; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.test_requests ADD CONSTRAINT fknqjc4we34e4wifcywdldj6rd5 FOREIGN KEY (tester_user_id) REFERENCES public.users(id); -- -- Name: test_suites fks18k0tf2iy21vghjgkl9y52fm; Type: FK CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY public.test_suites ADD CONSTRAINT fks18k0tf2iy21vghjgkl9y52fm FOREIGN KEY (test_request_id) REFERENCES public.test_requests(id); -- -- PostgreSQL database dump complete --
true
d9dedf09ebe7cd1fd18eba01cb31cb148c627705
SQL
tirumaraiselvan/graphql-engine
/community/sample-apps/todo-auth0-jwt/hasura/migrations/default/1613665146384_init/up.sql
UTF-8
501
3.421875
3
[ "MIT", "Apache-2.0" ]
permissive
CREATE TABLE public.todo ( id integer NOT NULL, task text NOT NULL, completed boolean NOT NULL, user_id text NOT NULL ); CREATE SEQUENCE public.todo_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.todo_id_seq OWNED BY public.todo.id; ALTER TABLE ONLY public.todo ALTER COLUMN id SET DEFAULT nextval('public.todo_id_seq'::regclass); ALTER TABLE ONLY public.todo ADD CONSTRAINT todo_pkey PRIMARY KEY (id);
true
2aa060ec3d267707615d713fdcb793fd976de469
SQL
Mrtree24/SQL
/197. Rising Temperature.sql
UTF-8
110
3.3125
3
[]
no_license
select a.Id from Weather a, Weather b where TO_DAYS(a.Date)=TO_DAYS(b.Date)+1 and a.Temperature>b.Temperature;
true
bb34c069e4c5c330a21d1194abbcf4e80cdec82f
SQL
yurjimar/IC-Inventory
/Programación/MySQL/Select Template.sql
UTF-8
414
3.328125
3
[]
no_license
select Client.First_Name, Client.Last_Name1, History.Start_Date, Stock.Barcode, Status.Name,Object.Name, Category.Name from Client INNER JOIN History ON History.Client = Client.idClient INNER JOIN Stock ON Stock.Barcode = History.Barcode_Stock INNER JOIN Status ON Status.idStatus = Stock.Barcode INNER JOIN Object ON Stock.Object = Object.idObject INNER JOIN Category ON Category.idCategory = Object.Category
true
561466bd28f8bbabb24c1e54a74d45d5b8419baf
SQL
briansheen/myWeather
/sql/create_tables.sql
UTF-8
936
3.8125
4
[ "Unlicense" ]
permissive
CREATE TABLE `user` ( `username` varchar(256) NOT NULL, `password` varchar(256) NOT NULL, `enabled` tinyint(1) DEFAULT NULL, `created_at` varchar(10) DEFAULT NULL, `updated_at` varchar(10) DEFAULT NULL, PRIMARY KEY (`username`) ) ENGINE=InnoDB; CREATE TABLE `authorities` ( `username` varchar(256) NOT NULL, `authority` varchar(256) NOT NULL, PRIMARY KEY (`username`,`authority`) ) ENGINE=InnoDB; CREATE TABLE `search` ( `search_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(256) NOT NULL, `search_query` varchar(256) DEFAULT NULL, PRIMARY KEY (`search_id`), KEY `fk_search_user` (`username`), CONSTRAINT `fk_search_user` FOREIGN KEY (`username`) REFERENCES `user` (`username`) ON UPDATE CASCADE ON DELETE CASCADE ) ENGINE=InnoDB; insert into user (username, password, enabled) values ('brian', 'brian', true); insert into authorities (username, authority) values ('brian', 'ROLE_USER');
true
36badf0ac6878c61edc1f985a97f757319637261
SQL
antoncom/messenger
/assets/components/themebootstrap/js/extract_promocode.sql
UTF-8
442
3.75
4
[]
no_license
SELECT pagetitle, modTemplateVarResource.value AS blg FROM `modx_site_content` AS `modResource` LEFT JOIN `modx_site_tmplvar_contentvalues` `modTemplateVarResource` ON (`modTemplateVarResource`.`tmplvarid` = '5' AND `modTemplateVarResource`.`contentid` = modResource.id) WHERE ( `modResource`.`parent` = 5135 AND `modResource`.`pagetitle` REGEXP '^01[0-9]{1,4}$' AND `modTemplateVarResource`.`value` IS NULL) ORDER BY pagetitle ASC LIMIT 10
true
93e8d4bf142bb0df5f32b039dbd72fd45dd16380
SQL
sun-wangbaiyu/emr-code
/pkuhit.iih.mr-impl/src/main/resources/META-INF/pkuhit/iih/qa/dao/qacustom/CusQaMrAmrDao/selectTerminalAmrZyAdtByCondition.sql
UTF-8
4,120
2.765625
3
[]
no_license
select amr.EN_PK, amr.PA_ID, amr.EN_CNT, amr.PA_NM, amr.SEX_CD, amr.AGE, amr.ORG_CD, amr.AMR_NO, amr.EN_NO, amr.EN_TP_CD, amr.EN_STA_CD, amr.AMR_STA_CD, amr.AMR_RANK_CD, amr.QA_SCR, amr.QA_AUTO_SCR, amr.REG_TIME, amr.REG_USER_ID, amr.REG_DEPT_CD, amr.RCV_USER_ID, amr.RCV_DEPT_CD, amr.RCV_TIME, amr.ILL_STA_CD, amr.NU_LVL_CD, amr.CUR_MAIN_DI_CD, amr.CUR_DEPT_CD, amr.CUR_DEPT_INTO_TIME, amr.CUR_WARD_CD, amr.CUR_WARD_INTO_TIME, amr.CUR_GRP_CD, amr.CUR_BED_CD, amr.CUR_MNG_DCT_ID, amr.CUR_MOJ_DCT_ID, amr.CUR_DRC_DCT_ID, amr.CUR_MNG_NUR_ID, amr.SU_F, amr.DEATH_F, amr.READM_F, amr.CALL_BACK_F, amr.FLUP_VISIT_F, amr.FNSH_TIME, amr.FNSH_USER_ID, amr.FNSH_DEPT_CD, amr.TERM_QA_CMPL_TIME, amr.TERM_QA_CMPL_USER_ID, amr.TERM_QA_CMPL_DEPT_CD, q.lvl, count(flt.en_pk) as faultTotal --缺陷数 /*%if qaTypeCode != null && qaTypeCode != "" && qaTypeCode == "QAM13.03"*/ ,(case when amr.terminal is not null then 1 else 0 end) as qaFlag /*%end */ /*%if qaTypeCode != null && qaTypeCode != "" && qaTypeCode == "QAM13.02"*/ ,(case when amr.dept_terminal is not null then 1 else 0 end) as qaFlag /*%end */ from MR_AMR amr left join QA_FLT flt on amr.EN_PK = flt.EN_PK /*%if qaTypeCode != null && qaTypeCode != "" */ and flt.QA_TY_CD = /*qaTypeCode*/'QAM13.01' /*%end */ and flt.DEL_F = 0 inner join en_adt b on amr.en_pk = b.en_pk --inner join "zy_adt"@dg4msql b on amr.pa_id = b."patient_id" and amr.en_cnt = b."admiss_times" and b."trans_times" > 0 /*%if specialMr != null && specialMr != "" && specialMr =="17"*/ and (b.orig_dept = '1006010' or b.curr_dept = '1006010') /*%end */ left join qa_divide_level q on amr.amr_rank_cd = q.qa_divide_level_cd where 1=1 /*%if amrStatus != null && amrStatus != ""*/ and amr.AMR_STA_CD = /*amrStatus*/'1' /*%end */ /*%if curDeptNm != null && curDeptNm != "" */ and amr.CUR_DEPT_CD = /*curDeptNm*/'1' /*%end */ /*%if amrNo != null && amrNo != "" */ and amr.AMR_NO like /* @contain(amrNo) */'%g%' /*%end*/ /*%if patientName != null && patientName != "" */ and amr.PA_NM like /* @contain(patientName) */'%g%' /*%end*/ /*%if beginTime != null && beginTime != "" && beginTime != "undefined"*/ and to_char(amr.FNSH_TIME,'yyyy-mm-dd hh:mm:ss') > /*beginTime*/'2010-02-19 21:05:10.630' /*%end */ /*%if endTime != null && endTime != "" && endTime != "undefined"*/ and to_char(amr.FNSH_TIME,'yyyy-mm-dd hh:mm:ss') < /*endTime*/'2016-07-19 21:05:10.630' /*%end */ and amr.en_tp_cd='ENM01.04'--就诊类型为住院 /*%if qaAutoScrMin != null && qaAutoScrMin != ""&& qaAutoScrMin != "undefined"*/ and amr.qa_auto_scr>/*qaAutoScrMin*/'a' /*%end */ /*%if qaAutoScrMax != null && qaAutoScrMax != "" && qaAutoScrMax != "undefined"*/ and amr.qa_auto_scr</*qaAutoScrMax*/'a' /*%end */ /*%if enStaCd != null && enStaCd != "" */ and amr.EN_STA_CD=/*enStaCd*/'a' --当为医嘱质控时,需要查询此条件,就诊状态为ENM02.02已接诊 /*%end */ and amr.DEL_F=0 group by flt.en_pk, amr.EN_PK, amr.PA_ID, amr.EN_CNT, amr.PA_NM, amr.SEX_CD, amr.AGE, amr.ORG_CD, amr.AMR_NO, amr.EN_NO, amr.EN_TP_CD, amr.EN_STA_CD, amr.AMR_STA_CD, amr.AMR_RANK_CD, amr.QA_SCR, amr.QA_AUTO_SCR, amr.REG_TIME, amr.REG_USER_ID, amr.REG_DEPT_CD, amr.RCV_USER_ID, amr.RCV_DEPT_CD, amr.RCV_TIME, amr.ILL_STA_CD, amr.NU_LVL_CD, amr.CUR_MAIN_DI_CD, amr.CUR_DEPT_CD, amr.CUR_DEPT_INTO_TIME, amr.CUR_WARD_CD, amr.CUR_WARD_INTO_TIME, amr.CUR_GRP_CD, amr.CUR_BED_CD, amr.CUR_MNG_DCT_ID, amr.CUR_MOJ_DCT_ID, amr.CUR_DRC_DCT_ID, amr.CUR_MNG_NUR_ID, amr.SU_F, amr.DEATH_F, amr.READM_F, amr.CALL_BACK_F, amr.FLUP_VISIT_F, amr.FNSH_TIME, amr.FNSH_USER_ID, amr.FNSH_DEPT_CD, amr.TERM_QA_CMPL_TIME, amr.TERM_QA_CMPL_USER_ID, amr.TERM_QA_CMPL_DEPT_CD, q.lvl, amr.terminal, amr.dept_terminal order by amr.CUR_BED_CD
true
5a044c68ca7b9b1b130629d7aff1fe17862657f3
SQL
tenohira-xyz/MagazineManager
/src/main/resources/schema.sql
UTF-8
881
3.53125
4
[]
no_license
DROP ALL OBJECTS; /* ユーザマスタ */ CREATE TABLE IF NOT EXISTS m_user ( name VARCHAR(50) PRIMARY KEY, password VARCHAR(255), authority VARCHAR(20) ); /* 雑誌テーブル */ CREATE TABLE IF NOT EXISTS magazine ( magazine_id INT auto_increment PRIMARY KEY, name VARCHAR(30) NOT NULL, number VARCHAR(20) NOT NULL, publisher VARCHAR(20), issue_date DATE, update_time TIMESTAMP NOT NULL ); /* 目次テーブル */ CREATE TABLE IF NOT EXISTS article ( magazine_id INT, section VARCHAR(30), title VARCHAR(50), start_page INT NOT NULL, update_time TIMESTAMP NOT NULL, FOREIGN KEY (magazine_id) REFERENCES magazine(magazine_id) ); /* 索引テーブル */ CREATE TABLE IF NOT EXISTS keyword ( magazine_id INT, word VARCHAR(50) NOT NULL, start_page INT NOT NULL, update_time TIMESTAMP NOT NULL, FOREIGN KEY (magazine_id) REFERENCES magazine(magazine_id) );
true
0f3cd51711cbfe7ece95d7f91c5a612d1c1b52f5
SQL
DhirajChauhan1997/GroceryMs
/SQL/grocerydb (2).sql
UTF-8
31,543
3.109375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 05, 2019 at 11:59 AM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `grocerydb` -- -- -------------------------------------------------------- -- -- Table structure for table `countries` -- DROP TABLE IF EXISTS `countries`; CREATE TABLE IF NOT EXISTS `countries` ( `country_id` int(5) NOT NULL AUTO_INCREMENT, `countryCode` char(2) NOT NULL DEFAULT '', `name` varchar(45) NOT NULL DEFAULT '', PRIMARY KEY (`country_id`) ) ENGINE=InnoDB AUTO_INCREMENT=251 DEFAULT CHARSET=utf8; -- -- Dumping data for table `countries` -- INSERT INTO `countries` (`country_id`, `countryCode`, `name`) VALUES (1, 'AD', 'Andorra'), (2, 'AE', 'United Arab Emirates'), (3, 'AF', 'Afghanistan'), (4, 'AG', 'Antigua and Barbuda'), (5, 'AI', 'Anguilla'), (6, 'AL', 'Albania'), (7, 'AM', 'Armenia'), (8, 'AO', 'Angola'), (9, 'AQ', 'Antarctica'), (10, 'AR', 'Argentina'), (11, 'AS', 'American Samoa'), (12, 'AT', 'Austria'), (13, 'AU', 'Australia'), (14, 'AW', 'Aruba'), (15, 'AX', 'Åland'), (16, 'AZ', 'Azerbaijan'), (17, 'BA', 'Bosnia and Herzegovina'), (18, 'BB', 'Barbados'), (19, 'BD', 'Bangladesh'), (20, 'BE', 'Belgium'), (21, 'BF', 'Burkina Faso'), (22, 'BG', 'Bulgaria'), (23, 'BH', 'Bahrain'), (24, 'BI', 'Burundi'), (25, 'BJ', 'Benin'), (26, 'BL', 'Saint Barthélemy'), (27, 'BM', 'Bermuda'), (28, 'BN', 'Brunei'), (29, 'BO', 'Bolivia'), (30, 'BQ', 'Bonaire'), (31, 'BR', 'Brazil'), (32, 'BS', 'Bahamas'), (33, 'BT', 'Bhutan'), (34, 'BV', 'Bouvet Island'), (35, 'BW', 'Botswana'), (36, 'BY', 'Belarus'), (37, 'BZ', 'Belize'), (38, 'CA', 'Canada'), (39, 'CC', 'Cocos [Keeling] Islands'), (40, 'CD', 'Democratic Republic of the Congo'), (41, 'CF', 'Central African Republic'), (42, 'CG', 'Republic of the Congo'), (43, 'CH', 'Switzerland'), (44, 'CI', 'Ivory Coast'), (45, 'CK', 'Cook Islands'), (46, 'CL', 'Chile'), (47, 'CM', 'Cameroon'), (48, 'CN', 'China'), (49, 'CO', 'Colombia'), (50, 'CR', 'Costa Rica'), (51, 'CU', 'Cuba'), (52, 'CV', 'Cape Verde'), (53, 'CW', 'Curacao'), (54, 'CX', 'Christmas Island'), (55, 'CY', 'Cyprus'), (56, 'CZ', 'Czech Republic'), (57, 'DE', 'Germany'), (58, 'DJ', 'Djibouti'), (59, 'DK', 'Denmark'), (60, 'DM', 'Dominica'), (61, 'DO', 'Dominican Republic'), (62, 'DZ', 'Algeria'), (63, 'EC', 'Ecuador'), (64, 'EE', 'Estonia'), (65, 'EG', 'Egypt'), (66, 'EH', 'Western Sahara'), (67, 'ER', 'Eritrea'), (68, 'ES', 'Spain'), (69, 'ET', 'Ethiopia'), (70, 'FI', 'Finland'), (71, 'FJ', 'Fiji'), (72, 'FK', 'Falkland Islands'), (73, 'FM', 'Micronesia'), (74, 'FO', 'Faroe Islands'), (75, 'FR', 'France'), (76, 'GA', 'Gabon'), (77, 'GB', 'United Kingdom'), (78, 'GD', 'Grenada'), (79, 'GE', 'Georgia'), (80, 'GF', 'French Guiana'), (81, 'GG', 'Guernsey'), (82, 'GH', 'Ghana'), (83, 'GI', 'Gibraltar'), (84, 'GL', 'Greenland'), (85, 'GM', 'Gambia'), (86, 'GN', 'Guinea'), (87, 'GP', 'Guadeloupe'), (88, 'GQ', 'Equatorial Guinea'), (89, 'GR', 'Greece'), (90, 'GS', 'South Georgia and the South Sandwich Islands'), (91, 'GT', 'Guatemala'), (92, 'GU', 'Guam'), (93, 'GW', 'Guinea-Bissau'), (94, 'GY', 'Guyana'), (95, 'HK', 'Hong Kong'), (96, 'HM', 'Heard Island and McDonald Islands'), (97, 'HN', 'Honduras'), (98, 'HR', 'Croatia'), (99, 'HT', 'Haiti'), (100, 'HU', 'Hungary'), (101, 'ID', 'Indonesia'), (102, 'IE', 'Ireland'), (103, 'IL', 'Israel'), (104, 'IM', 'Isle of Man'), (105, 'IN', 'India'), (106, 'IO', 'British Indian Ocean Territory'), (107, 'IQ', 'Iraq'), (108, 'IR', 'Iran'), (109, 'IS', 'Iceland'), (110, 'IT', 'Italy'), (111, 'JE', 'Jersey'), (112, 'JM', 'Jamaica'), (113, 'JO', 'Jordan'), (114, 'JP', 'Japan'), (115, 'KE', 'Kenya'), (116, 'KG', 'Kyrgyzstan'), (117, 'KH', 'Cambodia'), (118, 'KI', 'Kiribati'), (119, 'KM', 'Comoros'), (120, 'KN', 'Saint Kitts and Nevis'), (121, 'KP', 'North Korea'), (122, 'KR', 'South Korea'), (123, 'KW', 'Kuwait'), (124, 'KY', 'Cayman Islands'), (125, 'KZ', 'Kazakhstan'), (126, 'LA', 'Laos'), (127, 'LB', 'Lebanon'), (128, 'LC', 'Saint Lucia'), (129, 'LI', 'Liechtenstein'), (130, 'LK', 'Sri Lanka'), (131, 'LR', 'Liberia'), (132, 'LS', 'Lesotho'), (133, 'LT', 'Lithuania'), (134, 'LU', 'Luxembourg'), (135, 'LV', 'Latvia'), (136, 'LY', 'Libya'), (137, 'MA', 'Morocco'), (138, 'MC', 'Monaco'), (139, 'MD', 'Moldova'), (140, 'ME', 'Montenegro'), (141, 'MF', 'Saint Martin'), (142, 'MG', 'Madagascar'), (143, 'MH', 'Marshall Islands'), (144, 'MK', 'Macedonia'), (145, 'ML', 'Mali'), (146, 'MM', 'Myanmar [Burma]'), (147, 'MN', 'Mongolia'), (148, 'MO', 'Macao'), (149, 'MP', 'Northern Mariana Islands'), (150, 'MQ', 'Martinique'), (151, 'MR', 'Mauritania'), (152, 'MS', 'Montserrat'), (153, 'MT', 'Malta'), (154, 'MU', 'Mauritius'), (155, 'MV', 'Maldives'), (156, 'MW', 'Malawi'), (157, 'MX', 'Mexico'), (158, 'MY', 'Malaysia'), (159, 'MZ', 'Mozambique'), (160, 'NA', 'Namibia'), (161, 'NC', 'New Caledonia'), (162, 'NE', 'Niger'), (163, 'NF', 'Norfolk Island'), (164, 'NG', 'Nigeria'), (165, 'NI', 'Nicaragua'), (166, 'NL', 'Netherlands'), (167, 'NO', 'Norway'), (168, 'NP', 'Nepal'), (169, 'NR', 'Nauru'), (170, 'NU', 'Niue'), (171, 'NZ', 'New Zealand'), (172, 'OM', 'Oman'), (173, 'PA', 'Panama'), (174, 'PE', 'Peru'), (175, 'PF', 'French Polynesia'), (176, 'PG', 'Papua New Guinea'), (177, 'PH', 'Philippines'), (178, 'PK', 'Pakistan'), (179, 'PL', 'Poland'), (180, 'PM', 'Saint Pierre and Miquelon'), (181, 'PN', 'Pitcairn Islands'), (182, 'PR', 'Puerto Rico'), (183, 'PS', 'Palestine'), (184, 'PT', 'Portugal'), (185, 'PW', 'Palau'), (186, 'PY', 'Paraguay'), (187, 'QA', 'Qatar'), (188, 'RE', 'Réunion'), (189, 'RO', 'Romania'), (190, 'RS', 'Serbia'), (191, 'RU', 'Russia'), (192, 'RW', 'Rwanda'), (193, 'SA', 'Saudi Arabia'), (194, 'SB', 'Solomon Islands'), (195, 'SC', 'Seychelles'), (196, 'SD', 'Sudan'), (197, 'SE', 'Sweden'), (198, 'SG', 'Singapore'), (199, 'SH', 'Saint Helena'), (200, 'SI', 'Slovenia'), (201, 'SJ', 'Svalbard and Jan Mayen'), (202, 'SK', 'Slovakia'), (203, 'SL', 'Sierra Leone'), (204, 'SM', 'San Marino'), (205, 'SN', 'Senegal'), (206, 'SO', 'Somalia'), (207, 'SR', 'Suriname'), (208, 'SS', 'South Sudan'), (209, 'ST', 'São Tomé and Príncipe'), (210, 'SV', 'El Salvador'), (211, 'SX', 'Sint Maarten'), (212, 'SY', 'Syria'), (213, 'SZ', 'Swaziland'), (214, 'TC', 'Turks and Caicos Islands'), (215, 'TD', 'Chad'), (216, 'TF', 'French Southern Territories'), (217, 'TG', 'Togo'), (218, 'TH', 'Thailand'), (219, 'TJ', 'Tajikistan'), (220, 'TK', 'Tokelau'), (221, 'TL', 'East Timor'), (222, 'TM', 'Turkmenistan'), (223, 'TN', 'Tunisia'), (224, 'TO', 'Tonga'), (225, 'TR', 'Turkey'), (226, 'TT', 'Trinidad and Tobago'), (227, 'TV', 'Tuvalu'), (228, 'TW', 'Taiwan'), (229, 'TZ', 'Tanzania'), (230, 'UA', 'Ukraine'), (231, 'UG', 'Uganda'), (232, 'UM', 'U.S. Minor Outlying Islands'), (233, 'US', 'United States'), (234, 'UY', 'Uruguay'), (235, 'UZ', 'Uzbekistan'), (236, 'VA', 'Vatican City'), (237, 'VC', 'Saint Vincent and the Grenadines'), (238, 'VE', 'Venezuela'), (239, 'VG', 'British Virgin Islands'), (240, 'VI', 'U.S. Virgin Islands'), (241, 'VN', 'Vietnam'), (242, 'VU', 'Vanuatu'), (243, 'WF', 'Wallis and Futuna'), (244, 'WS', 'Samoa'), (245, 'XK', 'Kosovo'), (246, 'YE', 'Yemen'), (247, 'YT', 'Mayotte'), (248, 'ZA', 'South Africa'), (249, 'ZM', 'Zambia'), (250, 'ZW', 'Zimbabwe'); -- -------------------------------------------------------- -- -- Table structure for table `gms_address` -- DROP TABLE IF EXISTS `gms_address`; CREATE TABLE IF NOT EXISTS `gms_address` ( `address_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `city_id` int(11) NOT NULL, `state_id` int(11) NOT NULL, `pin_code` int(6) NOT NULL, `address_type_iD` int(11) NOT NULL, `street` text NOT NULL, `shop_id` int(11) DEFAULT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`address_id`), KEY `user_id` (`user_id`), KEY `city_id` (`city_id`), KEY `state_id` (`state_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_address_type` -- DROP TABLE IF EXISTS `gms_address_type`; CREATE TABLE IF NOT EXISTS `gms_address_type` ( `address_type_id` int(11) NOT NULL AUTO_INCREMENT, `address_type` varchar(100) NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`address_type_id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Dumping data for table `gms_address_type` -- INSERT INTO `gms_address_type` (`address_type_id`, `address_type`, `created`, `modified`) VALUES (1, 'Home', '2019-10-30 06:38:40', '2019-10-30 06:38:40'), (3, 'Office', '2019-10-30 06:39:17', '2019-10-30 06:39:27'); -- -------------------------------------------------------- -- -- Table structure for table `gms_admin_user` -- DROP TABLE IF EXISTS `gms_admin_user`; CREATE TABLE IF NOT EXISTS `gms_admin_user` ( `admin_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, PRIMARY KEY (`admin_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_brand` -- DROP TABLE IF EXISTS `gms_brand`; CREATE TABLE IF NOT EXISTS `gms_brand` ( `brand_id` int(11) NOT NULL AUTO_INCREMENT, `brand` varchar(100) NOT NULL, `brand_logo` text NOT NULL, `brand_desc` text NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`brand_id`) ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1; -- -- Dumping data for table `gms_brand` -- INSERT INTO `gms_brand` (`brand_id`, `brand`, `brand_logo`, `brand_desc`, `created`, `modified`) VALUES (17, 'Parle', 'fHNWLoECrYchild.jpg', 'Universal Brand for Griocery', '2019-10-31 11:08:05', '2019-10-31 11:08:47'), (16, 'India Gate', 'r5vxX6WudVchild.jpg', 'This Is Rice Brand', '2019-10-30 12:25:49', '2019-10-30 12:26:19'); -- -------------------------------------------------------- -- -- Table structure for table `gms_card_detail` -- DROP TABLE IF EXISTS `gms_card_detail`; CREATE TABLE IF NOT EXISTS `gms_card_detail` ( `card_detail_id` int(11) NOT NULL AUTO_INCREMENT, `card_holder_name` varchar(50) NOT NULL, `card_number` int(11) NOT NULL, `expire_month` int(11) NOT NULL, `expire_year` int(11) NOT NULL, PRIMARY KEY (`card_detail_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_cart` -- DROP TABLE IF EXISTS `gms_cart`; CREATE TABLE IF NOT EXISTS `gms_cart` ( `cart_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `qty` int(11) NOT NULL, `status` varchar(50) NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`cart_id`), KEY `product_id` (`product_id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_cart_order` -- DROP TABLE IF EXISTS `gms_cart_order`; CREATE TABLE IF NOT EXISTS `gms_cart_order` ( `co_id` int(11) NOT NULL AUTO_INCREMENT, `cart_id` int(11) NOT NULL, `order_id` int(11) NOT NULL, PRIMARY KEY (`co_id`), KEY `cart_id` (`cart_id`), KEY `order_id` (`order_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_city` -- DROP TABLE IF EXISTS `gms_city`; CREATE TABLE IF NOT EXISTS `gms_city` ( `city_id` int(11) NOT NULL AUTO_INCREMENT, `city_name` varchar(100) NOT NULL, `state_id` int(11) NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`city_id`), KEY `state_id` (`state_id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Dumping data for table `gms_city` -- INSERT INTO `gms_city` (`city_id`, `city_name`, `state_id`, `created`, `modified`) VALUES (1, 'Surat', 1, '2019-10-30 10:48:06', '2019-10-30 10:48:06'), (2, 'Lucknow', 2, '2019-10-30 10:48:22', '2019-10-30 10:48:22'), (4, 'Amethi', 2, '2019-10-30 10:49:12', '2019-10-30 10:49:12'); -- -------------------------------------------------------- -- -- Table structure for table `gms_countries` -- DROP TABLE IF EXISTS `gms_countries`; CREATE TABLE IF NOT EXISTS `gms_countries` ( `id` int(5) NOT NULL, `countryCode` char(2) NOT NULL DEFAULT '', `name` varchar(45) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `gms_coupon` -- DROP TABLE IF EXISTS `gms_coupon`; CREATE TABLE IF NOT EXISTS `gms_coupon` ( `coupon_id` int(11) NOT NULL AUTO_INCREMENT, `coupon_code` varchar(20) NOT NULL, `product_id` int(11) NOT NULL, `cat_id` int(11) NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`coupon_id`), KEY `product_id` (`product_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_feedback` -- DROP TABLE IF EXISTS `gms_feedback`; CREATE TABLE IF NOT EXISTS `gms_feedback` ( `feedback_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `feedback` varchar(100) NOT NULL, PRIMARY KEY (`feedback_id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_invoice` -- DROP TABLE IF EXISTS `gms_invoice`; CREATE TABLE IF NOT EXISTS `gms_invoice` ( `invoice_id` int(11) NOT NULL AUTO_INCREMENT, `order_id` int(11) NOT NULL, `payment_id` int(11) NOT NULL, `create_on` timestamp NOT NULL, PRIMARY KEY (`invoice_id`), KEY `order_id` (`order_id`), KEY `payment_id` (`payment_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_main_category` -- DROP TABLE IF EXISTS `gms_main_category`; CREATE TABLE IF NOT EXISTS `gms_main_category` ( `cat_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `cat_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `cat_logo` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`cat_id`) ) ENGINE=MyISAM AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `gms_main_category` -- INSERT INTO `gms_main_category` (`cat_id`, `cat_name`, `cat_logo`, `created_at`, `updated_at`) VALUES (60, 'cxcxcxsdsdsdsdsds', '1CfOmYB9YFchild.jpg', '2019-11-05 03:47:34', '2019-11-05 03:47:42'), (59, 'Vegetables', 'HYWKbiJbzAfruit-veg01-lg.jpg', '2019-11-05 03:06:27', '2019-11-05 03:06:27'), (57, 'Dairy', '3AINO3a2HBfruit-veg01-lg.jpg', '2019-10-30 04:25:46', '2019-10-30 04:25:46'), (58, 'Rice', 'AwXsCc1YjVchildren-reading-book-png_100047.jpg', '2019-10-30 04:26:01', '2019-10-30 04:26:01'); -- -------------------------------------------------------- -- -- Table structure for table `gms_offer` -- DROP TABLE IF EXISTS `gms_offer`; CREATE TABLE IF NOT EXISTS `gms_offer` ( `offer_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL, `discount` float NOT NULL, `cat_id` int(11) NOT NULL, `shop_id` int(11) NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`offer_id`), KEY `product_id` (`product_id`), KEY `shope_id` (`shop_id`), KEY `cat_id` (`cat_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_order` -- DROP TABLE IF EXISTS `gms_order`; CREATE TABLE IF NOT EXISTS `gms_order` ( `order_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `status` varchar(100) NOT NULL, `descr` text NOT NULL, PRIMARY KEY (`order_id`), KEY `product_id` (`product_id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_payment` -- DROP TABLE IF EXISTS `gms_payment`; CREATE TABLE IF NOT EXISTS `gms_payment` ( `payment_id` int(11) NOT NULL AUTO_INCREMENT, `payment_type` int(11) NOT NULL, `amount` float NOT NULL, `status` varchar(100) NOT NULL, PRIMARY KEY (`payment_id`), KEY `payment_type` (`payment_type`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_payment_type` -- DROP TABLE IF EXISTS `gms_payment_type`; CREATE TABLE IF NOT EXISTS `gms_payment_type` ( `payment_type_id` int(11) NOT NULL AUTO_INCREMENT, `payment_type` varchar(100) NOT NULL, PRIMARY KEY (`payment_type_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_product-images` -- DROP TABLE IF EXISTS `gms_product-images`; CREATE TABLE IF NOT EXISTS `gms_product-images` ( `product_image_id` int(11) NOT NULL AUTO_INCREMENT, `product_image` text NOT NULL, `product_id` int(11) NOT NULL, `ismain` varchar(5) NOT NULL, PRIMARY KEY (`product_image_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_products` -- DROP TABLE IF EXISTS `gms_products`; CREATE TABLE IF NOT EXISTS `gms_products` ( `product_id` int(11) NOT NULL AUTO_INCREMENT, `product_name` varchar(100) NOT NULL, `price` varchar(20) NOT NULL, `photo` text NOT NULL, `descr` varchar(500) NOT NULL, `qty` int(11) NOT NULL, `is_active` int(1) NOT NULL DEFAULT '0', `brand_id` int(11) NOT NULL, `cat_id` int(11) NOT NULL, `sub_cat_id` int(11) NOT NULL, `mini_sub_category_id` int(11) NOT NULL DEFAULT '0', `weight` varchar(20) NOT NULL, `weight_unit_id` int(10) NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`product_id`) ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; -- -- Dumping data for table `gms_products` -- INSERT INTO `gms_products` (`product_id`, `product_name`, `price`, `photo`, `descr`, `qty`, `is_active`, `brand_id`, `cat_id`, `sub_cat_id`, `mini_sub_category_id`, `weight`, `weight_unit_id`, `created`, `modified`) VALUES (9, 'sdasd', '2332', 'ezfe9RlLEzfruit-veg01-lg.jpg', ' ssdsada ', 233, 0, 16, 58, 0, 0, '233', 1, '2019-11-05 06:00:59', '2019-11-05 06:25:14'); -- -------------------------------------------------------- -- -- Table structure for table `gms_product_details` -- DROP TABLE IF EXISTS `gms_product_details`; CREATE TABLE IF NOT EXISTS `gms_product_details` ( `product_detail_id` int(11) NOT NULL AUTO_INCREMENT, `mini_sub_cat_id` int(11) NOT NULL, `cat_id` int(11) NOT NULL, `weight_id` int(11) NOT NULL, `brand_id` int(11) NOT NULL, `product_id` int(11) NOT NULL, `main_category_id` int(11) NOT NULL, `sub_category_id` int(11) NOT NULL, PRIMARY KEY (`product_detail_id`), KEY `cat_id` (`cat_id`), KEY `weight_id` (`weight_id`), KEY `brand_id` (`brand_id`), KEY `product_id` (`product_id`), KEY `mini_sub_cat_id` (`mini_sub_cat_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_product_review` -- DROP TABLE IF EXISTS `gms_product_review`; CREATE TABLE IF NOT EXISTS `gms_product_review` ( `product_review_id` int(11) NOT NULL AUTO_INCREMENT, `order_id` int(11) NOT NULL, `review_star` int(11) NOT NULL, `desc` text NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`product_review_id`), KEY `order_id` (`order_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_product_weight` -- DROP TABLE IF EXISTS `gms_product_weight`; CREATE TABLE IF NOT EXISTS `gms_product_weight` ( `product_weight_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL, `weight_id` int(11) NOT NULL, `weight_type_id` int(11) NOT NULL, `weight_unit_id` int(11) NOT NULL, PRIMARY KEY (`product_weight_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_purchase_return` -- DROP TABLE IF EXISTS `gms_purchase_return`; CREATE TABLE IF NOT EXISTS `gms_purchase_return` ( `purchase_return_id` int(11) NOT NULL AUTO_INCREMENT, `order_id` int(11) NOT NULL, `reason_type_id` int(11) NOT NULL, `descr` varchar(100) NOT NULL, PRIMARY KEY (`purchase_return_id`), KEY `order_id` (`order_id`), KEY `reason_type_id` (`reason_type_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_reason-type` -- DROP TABLE IF EXISTS `gms_reason-type`; CREATE TABLE IF NOT EXISTS `gms_reason-type` ( `reason_type_id` int(11) NOT NULL AUTO_INCREMENT, `reason` varchar(100) NOT NULL, PRIMARY KEY (`reason_type_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_role` -- DROP TABLE IF EXISTS `gms_role`; CREATE TABLE IF NOT EXISTS `gms_role` ( `role_id` int(11) NOT NULL AUTO_INCREMENT, `role` varchar(20) NOT NULL, `modified` timestamp NOT NULL, `created` timestamp NOT NULL, PRIMARY KEY (`role_id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Dumping data for table `gms_role` -- INSERT INTO `gms_role` (`role_id`, `role`, `modified`, `created`) VALUES (1, 'admin', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (2, 'saller', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (3, 'user', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `gms_shipping` -- DROP TABLE IF EXISTS `gms_shipping`; CREATE TABLE IF NOT EXISTS `gms_shipping` ( `shipping_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL, `status` varchar(100) NOT NULL, PRIMARY KEY (`shipping_id`), KEY `product_id` (`product_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_shopekipper` -- DROP TABLE IF EXISTS `gms_shopekipper`; CREATE TABLE IF NOT EXISTS `gms_shopekipper` ( `shopekipper_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `first_name` varchar(100) NOT NULL, `last_name` varchar(100) NOT NULL, `profile_pic` text NOT NULL, PRIMARY KEY (`shopekipper_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_shops` -- DROP TABLE IF EXISTS `gms_shops`; CREATE TABLE IF NOT EXISTS `gms_shops` ( `shopid` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `shop_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `shop_owner_id` bigint(20) DEFAULT NULL, `shop_type_id` bigint(20) NOT NULL, `shop_desc` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`shopid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `gms_shop_type` -- DROP TABLE IF EXISTS `gms_shop_type`; CREATE TABLE IF NOT EXISTS `gms_shop_type` ( `shop_type_id` int(11) NOT NULL AUTO_INCREMENT, `shop_type` varchar(100) NOT NULL, PRIMARY KEY (`shop_type_id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- -- Dumping data for table `gms_shop_type` -- INSERT INTO `gms_shop_type` (`shop_type_id`, `shop_type`) VALUES (1, 'Dairy'), (2, 'Holl Shaller\r\n'); -- -------------------------------------------------------- -- -- Table structure for table `gms_state` -- DROP TABLE IF EXISTS `gms_state`; CREATE TABLE IF NOT EXISTS `gms_state` ( `state_id` int(11) NOT NULL AUTO_INCREMENT, `state_name` varchar(100) NOT NULL, `country_id` int(11) NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`state_id`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- -- Dumping data for table `gms_state` -- INSERT INTO `gms_state` (`state_id`, `state_name`, `country_id`, `created`, `modified`) VALUES (1, 'Gujarat', 0, '2019-10-30 10:47:25', '2019-10-30 10:47:25'), (2, 'Uttar Pradesh', 0, '2019-10-30 10:47:47', '2019-10-30 10:47:47'); -- -------------------------------------------------------- -- -- Table structure for table `gms_sub_category` -- DROP TABLE IF EXISTS `gms_sub_category`; CREATE TABLE IF NOT EXISTS `gms_sub_category` ( `sub_cat_id` int(11) NOT NULL AUTO_INCREMENT, `cat_id` int(11) NOT NULL, `sub_cat_name` varchar(100) NOT NULL, `cat_logo` text NOT NULL, `created` timestamp NOT NULL, `modified` int(11) NOT NULL, PRIMARY KEY (`sub_cat_id`), KEY `cat_id` (`cat_id`) ) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=latin1; -- -- Dumping data for table `gms_sub_category` -- INSERT INTO `gms_sub_category` (`sub_cat_id`, `cat_id`, `sub_cat_name`, `cat_logo`, `created`, `modified`) VALUES (18, 58, 'Basmati', 'kv9Gn3WZt9fruit-veg01-lg.jpg', '2019-10-30 04:52:22', 2019), (21, 0, 'yhytfrd', 'PQsLqPVHltfruit-veg01-lg.jpg', '2019-11-05 03:10:54', 2019), (22, 0, 'ikjhgfd', 'PnhL3KtW3Bchildren-reading-book-png_100047.jpg', '2019-11-05 03:14:03', 2019), (23, 0, 'kfjshf', 'Xfdre7W7l0child.jpg', '2019-11-05 03:19:36', 2019), (24, 58, 'Ashirwad', 'xLy8v0UOKichildren-reading-book-png_100047.jpg', '2019-11-05 03:26:52', 2019); -- -------------------------------------------------------- -- -- Table structure for table `gms_users` -- DROP TABLE IF EXISTS `gms_users`; CREATE TABLE IF NOT EXISTS `gms_users` ( `userid` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `username` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `firstname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `lastname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `mobno` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status` int(1) NOT NULL DEFAULT '0', `role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `roleid` int(11) NOT NULL, `created` timestamp NULL DEFAULT NULL, `modified` timestamp NULL DEFAULT NULL, PRIMARY KEY (`userid`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `gms_users` -- INSERT INTO `gms_users` (`userid`, `email`, `username`, `password`, `firstname`, `lastname`, `mobno`, `status`, `role`, `roleid`, `created`, `modified`) VALUES (1, 'dhiraj.chauhan1997@gmail.com', 'dhiraj', '432639de2357c9d560a9c3d022d3fc8a', 'dhiraj', 'chauhan', '9904750956', 1, 'user', 3, NULL, NULL), (3, 'suraj@d.com', 'suraj', '432639de2357c9d560a9c3d022d3fc8a', 'Suraj', 'Chauhan', '89898989', 1, 'saller', 2, '2019-10-24 18:30:00', '2019-10-24 18:30:00'), (4, 'yogesh@d.com', 'yogesh', '432639de2357c9d560a9c3d022d3fc8a', 'Yogesh', 'Gamit', '89898989', 1, 'admin', 1, '2019-10-24 18:30:00', '2019-10-24 18:30:00'), (8, 'sandip@d.com', 'sandip', '432639de2357c9d560a9c3d022d3fc8a', 'Sandip', 'Valvi', '8956322389', 1, 'user', 3, '2019-10-25 11:14:12', '2019-10-25 11:14:12'), (9, 'jhsdjshd@d.com', 'djhsjdh', '432639de2357c9d560a9c3d022d3fc8a', 'kamal', 'chauhan', '78787878787878', 1, 'user', 3, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (11, 'hgfhdg@d.com', 'sjdhsdjhs', '2a9f1ffa74a27f88b8853a343621e146', 'sdfsdhfg', 'hhdfghfg', '98652374', 0, 'saller', 0, '2019-11-05 02:51:29', '2019-11-05 02:51:29'); -- -------------------------------------------------------- -- -- Table structure for table `gms_weight` -- DROP TABLE IF EXISTS `gms_weight`; CREATE TABLE IF NOT EXISTS `gms_weight` ( `weight_id` int(11) NOT NULL AUTO_INCREMENT, `weight` float NOT NULL, `weight_type_id` int(11) NOT NULL, PRIMARY KEY (`weight_id`), KEY `weight_type_id` (`weight_type_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_weight_type` -- DROP TABLE IF EXISTS `gms_weight_type`; CREATE TABLE IF NOT EXISTS `gms_weight_type` ( `weight_type-id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(100) NOT NULL, `descr` text NOT NULL, PRIMARY KEY (`weight_type-id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gms_weight_unit` -- DROP TABLE IF EXISTS `gms_weight_unit`; CREATE TABLE IF NOT EXISTS `gms_weight_unit` ( `weight_unit_id` int(11) NOT NULL AUTO_INCREMENT, `unit` varchar(100) NOT NULL, `descr` text NOT NULL, `created` timestamp NOT NULL, `modified` timestamp NOT NULL, PRIMARY KEY (`weight_unit_id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Dumping data for table `gms_weight_unit` -- INSERT INTO `gms_weight_unit` (`weight_unit_id`, `unit`, `descr`, `created`, `modified`) VALUES (1, 'KG', '', '2019-10-30 12:50:23', '2019-10-30 12:50:23'), (3, 'Gram', '', '2019-10-30 13:05:57', '2019-11-02 00:19:09'), (4, 'ML', '', '2019-11-02 00:12:41', '2019-11-02 00:18:57'), (5, 'Liter', '', '2019-11-02 00:19:19', '2019-11-02 00:19:19'); -- -------------------------------------------------------- -- -- Table structure for table `keys` -- DROP TABLE IF EXISTS `keys`; CREATE TABLE IF NOT EXISTS `keys` ( `keyid` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `key` varchar(40) NOT NULL, `level` int(2) NOT NULL, `ignore_limits` tinyint(1) NOT NULL DEFAULT '0', `is_private_key` tinyint(1) NOT NULL DEFAULT '0', `ip_addresses` text, `date_created` datetime NOT NULL, PRIMARY KEY (`keyid`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- -- Dumping data for table `keys` -- INSERT INTO `keys` (`keyid`, `user_id`, `key`, `level`, `ignore_limits`, `is_private_key`, `ip_addresses`, `date_created`) VALUES (1, 1, 'CODEX@123', 0, 0, 0, NULL, '2018-10-11 13:34:33'); -- -------------------------------------------------------- -- -- Table structure for table `roles` -- DROP TABLE IF EXISTS `roles`; CREATE TABLE IF NOT EXISTS `roles` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
3c07d347be67c655ab8bf1e52c7b0556f602b437
SQL
GambuzX/Movie-Theater-DB
/int6.sql
UTF-8
1,371
4.4375
4
[ "MIT" ]
permissive
.mode columns .headers on .nullvalue NULL DROP VIEW IF EXISTS HorariosPorCinema; CREATE VIEW HorariosPorCinema AS SELECT nomeC, Horario_t, COUNT(Horario_t) as quant FROM (SELECT CASE WHEN time(horaInicio) >= '07:00:00' AND time(horaInicio) <= '11:00:00' THEN 'Inicio da Manhã' WHEN time(horaInicio) >= '11:00:00' AND time(horaInicio) <= '13:00:00' THEN 'Fim da Manhã' WHEN time(horaInicio) >= '13:00:00' AND time(horaInicio) <= '16:00:00' THEN 'Inicio da Tarde' WHEN time(horaInicio) >= '16:00:00' AND time(horaInicio) <= '17:30:00' THEN 'Meio da Tarde' WHEN time(horaInicio) >= '17:30:00' AND time(horaInicio) <= '19:30:00' THEN 'Fim da Tarde' WHEN time(horaInicio) >= '19:30:00' AND time(horaInicio) <= '22:00:00' THEN 'Noite' Else 'Madrugada' END Horario_t, Cinema.nome as nomeC FROM Sessao INNER JOIN Sala INNER JOIN Cinema WHERE Sessao.sala=Sala.salaID AND Sala.cinema=Cinema.cinemaID) GROUP By nomeC, Horario_t ORDER By nomeC ASC, quant DESC; SELECT * FROM (SELECT nomeC as "Cinema", Horario_t as 'Melhor Horario', quant as 'Quantidade Maxima' FROM HorariosPorCinema GROUP BY nomeC HAVING MAX(quant)) NATURAL JOIN (SELECT nomeC as "Cinema", Horario_t as 'Pior Horario', quant as 'Quantidade Minima' FROM HorariosPorCinema GROUP BY nomeC HAVING MIN(quant));
true
5868da2e3303c0e9e88cf3a252d40e871b36ccd6
SQL
zhangjunapk/invoke-interface
/src/main/resources/somethinginteresing.sql
UTF-8
6,653
2.65625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : local Source Server Type : MySQL Source Server Version : 50559 Source Host : localhost:3306 Source Schema : somethinginteresing Target Server Type : MySQL Target Server Version : 50559 File Encoding : 65001 Date: 07/09/2019 21:31:53 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for zj_business_customer -- ---------------------------- DROP TABLE IF EXISTS `zj_business_customer`; CREATE TABLE `zj_business_customer` ( `id` int(50) NOT NULL COMMENT '业务唯一标识', `customer_id` int(50) NULL DEFAULT NULL COMMENT '客户的id', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of zj_business_customer -- ---------------------------- INSERT INTO `zj_business_customer` VALUES (1, 1); -- ---------------------------- -- Table structure for zj_customer_info -- ---------------------------- DROP TABLE IF EXISTS `zj_customer_info`; CREATE TABLE `zj_customer_info` ( `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '客户ID', `customer_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户名', `customer_phone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户电话号码', `customer_idcardnumber` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户身份证', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of zj_customer_info -- ---------------------------- INSERT INTO `zj_customer_info` VALUES ('1', '古全星', '15898999180', '371121198711160413'); -- ---------------------------- -- Table structure for zj_interface_invoke_param -- ---------------------------- DROP TABLE IF EXISTS `zj_interface_invoke_param`; CREATE TABLE `zj_interface_invoke_param` ( `id` int(50) NOT NULL COMMENT '参数的唯一标识', `param_field_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数的字段名', `data_value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '具体的值', `data_ref` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表中的字段', `data_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '唯一标识', `param_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数据最终需要的 form json head', `current_data_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前表中存放的数据类型 ', `need_data_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '需要的数据类型', `class_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数据的类全名' ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of zj_interface_invoke_param -- ---------------------------- INSERT INTO `zj_interface_invoke_param` VALUES (0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'org.zj.interfaceinvoke.business.test.bean.RequestHlzApply'); INSERT INTO `zj_interface_invoke_param` VALUES (1, 'reqBodyBean.baseUser.idCard', '', 'zj_invoke_hlz_apply.customer_idcardnumber', 'business_id', 'json', 'string', 'string', 'org.zj.interfaceinvoke.business.test.bean.RequestHlzApply'); INSERT INTO `zj_interface_invoke_param` VALUES (1, 'reqBodyBean.baseUser.idName', NULL, 'zj_invoke_hlz_apply.customer_name', 'business_id', 'json', 'string', 'string', 'org.zj.interfaceinvoke.business.test.bean.RequestHlzApply'); INSERT INTO `zj_interface_invoke_param` VALUES (1, 'reqBodyBean.baseUser.phone', NULL, 'zj_invoke_hlz_apply.customer_phone', 'business_id', 'json', 'string', 'string', 'org.zj.interfaceinvoke.business.test.bean.RequestHlzApply'); INSERT INTO `zj_interface_invoke_param` VALUES (1, 'version', '1.0.0', NULL, '', 'json', 'string', 'string', 'org.zj.interfaceinvoke.business.test.bean.RequestHlzApply'); INSERT INTO `zj_interface_invoke_param` VALUES (1, 'reqBodyBean.memberId', 'xxxxx', NULL, NULL, 'json', 'string', 'string', 'org.zj.interfaceinvoke.business.test.bean.RequestHlzApply'); INSERT INTO `zj_interface_invoke_param` VALUES (1, 'reqBodyBean.workId', 'xxxxx', NULL, NULL, 'json', 'string', 'string', 'org.zj.interfaceinvoke.business.test.bean.RequestHlzApply'); -- ---------------------------- -- Table structure for zj_interface_invoke_task -- ---------------------------- DROP TABLE IF EXISTS `zj_interface_invoke_task`; CREATE TABLE `zj_interface_invoke_task` ( `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '接口调用的唯一标识', `invoke_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' 要调用的接口的url', `interface_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接口名', `invoke_method` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '调用方法 get post', `param_handler_ref` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数处理的类全名.方法名', `response_handler_ref` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '接口响应结果的处理类全名', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of zj_interface_invoke_task -- ---------------------------- INSERT INTO `zj_interface_invoke_task` VALUES ('1', 'xxx', 'xxx', 'post', 'org.zj.interfaceinvoke.base.operate.TestParamHandler', NULL); -- ---------------------------- -- View structure for zj_invoke_hlz_apply -- ---------------------------- DROP VIEW IF EXISTS `zj_invoke_hlz_apply`; CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `zj_invoke_hlz_apply` AS select `zbc`.`id` AS `business_id`,`zci`.`id` AS `customer_id`,`zci`.`customer_name` AS `customer_name`,`zci`.`customer_phone` AS `customer_phone`,`zci`.`customer_idcardnumber` AS `customer_idcardnumber` from (`zj_business_customer` `zbc` left join `zj_customer_info` `zci` on((`zbc`.`customer_id` = `zci`.`id`))); SET FOREIGN_KEY_CHECKS = 1;
true
c25ddbf27bd80846a133bfc70888336c8a0204b3
SQL
KatyoonMehr/SQL
/SQLQuery_Basics.sql
UTF-8
20,145
3.921875
4
[]
no_license
-- Access GRANT CREATE TABLE TO Guest; CREATE ROLE Data_Scientist; GRANT CREATE TABLE TO Data_Scientist; ALTER ROLE Data_Scientist ADD MEMBER Kati_Mehr; ALTER ROLE Data_Scientist DROP MEMBER Kati_Mehr; DROP ROLE Data_Scientist; ------------------------------------------------------------ -- Day 1 ------------------------------------------------------------ CREATE DATABASE Leanna_2016; ALTER DATABASE Leanna_2016 MODIFY name=Meloryna_2018; DROP DATABASE Meloryna_2018; CREATE DATABASE Meloryna; CREATE TABLE tblGender (ID INT NOT NULL PRIMARY KEY, Gender NVARCHAR(50)); INSERT INTO tblGender VALUES (001, 'Female'), (002, 'Female'), (003, 'Female'), (004, 'Male'); SELECT * FROM tblGender; ALTER TABLE tblGender ADD G_Code TINYINT; UPDATE tblGender SET G_Code=2 WHERE ID=001; UPDATE tblGender SET G_Code=2 WHERE ID IN (002, 003); UPDATE tblGender SET G_Code=1 WHERE ID LIKE '4'; CREATE TABLE tblPerson (ID int NOT NULL PRIMARY KEY, Name NVARCHAR(50), Last_Name NVARCHAR(50)); ALTER TABLE tblPerson ADD Email VARCHAR(100); ALTER TABLE tblPerson ADD Phone CHAR(10); DROP TABLE tblPerson; INSERT INTO tblPerson VALUES (001, 'Kati', 'Mehr','kati_mehr@yahoo.com', '6478308228'); INSERT INTO tblPerson VALUES (002, 'Rayan', 'Massah', '', ''); INSERT INTO tblPerson VALUES (003, 'Leanna', 'Massah', '', ''); INSERT INTO tblPerson VALUES (004, 'Meloryna', 'Massah', 'rayan.massag@gmail.com', '6478718283'); SELECT * FROM tblPerson; SELECT Email FROM tblPerson; DELETE tblGender; ---Just Delete the content of table but keep the table SELECT * FROM tblGender; DROP TABLE tblGender; --- Remove the whole table and all the contents DELETE tblPerson; SELECT * FROM tblPerson; SELECT * FROM tblPerson WHERE ID=1; SELECT * FROM tblPerson WHERE Name='Kati'; SELECT Gender FROM tblGender; CREATE TABLE Price (Item VARCHAR(20) NOT NULL, Wholesale FLOAT, QTY INT); DROP TABLE Price; INSERT INTO Price VALUES ('Apple', 2.2, 6780); INSERT INTO Price VALUES ('Orange', 1.3, 2000); INSERT INTO Price VALUES ('Grape', 3.3, 5643); INSERT INTO Price VALUES ('Banana', 1.1, 2000); INSERT INTO Price VALUES ('Watermelon', 5.1, 5000); INSERT INTO Price VALUES ('Potato', 1.9, 60987); INSERT INTO Price VALUES ('Pomegrenade', 4.1, 150); INSERT INTO Price VALUES ('Tangerine', 1.3, 56432); INSERT INTO Price VALUES ('Tomato', 1.9, 7000); INSERT INTO Price VALUES ('Peach', 3.7, 1000); SELECT * FROM Price ORDER BY item; SELECT Item, wholesale, wholesale+0.5 AS 'added0.5' FROM Price; SELECT *, wholesale*100 AS multiply100 FROM Price; SELECT item as sales_item, SUM(wholesale) AS sum_sale FROM Price GROUP BY item ORDER BY sum_sale; SELECT item as sales_item, SUM(QTY) AS Total_Quantity, AVG(Wholesale) AS Average_Price FROM Price GROUP BY item ORDER BY Total_Quantity; INSERT INTO Price VALUES ('Apple', 2.2, 2000); INSERT INTO Price VALUES ('Orange', 1.3, 2000); SELECT item, SUM(QTY) AS sum_QTY FROM Price GROUP BY item ORDER BY sum_QTY; SELECT *, -wholesale AS negsale FROM Price; CREATE TABLE sales (item VARCHAR(50), sales_price FLOAT, QTY int); DROP TABLE sales; SELECT * FROM Sales; SELECT *, QTY/100 AS Reminder FROM Price; SELECT * FROM Price WHERE QTY >=3000; SELECT * FROM Price WHERE item > 'BZ' ORDER BY item; SELECT * FROM Price; SELECT * FROM price WHERE NOT item = 'Orange'; SELECT * FROM price WHERE item != 'Orange'; -- Conditional Delete DELETE FROM Price WHERE item='Banana' OR item='Grape' OR item='Apple' OR item='Potato' OR item='Tomato'; DELETE FROM Price WHERE item='Pomegrenade' OR item='Tangerine'; DELETE FROM Price WHERE item='Tangerine'; ------------------------------------------------------------ -- Day 2 ------------------------------------------------------------ SELECT * FROM Price WHERE item LIKE '%PP%'; SELECT * FROM Price WHERE item LIKE 'P%'; SELECT * FROM Price WHERE item LIKE '%E'; SELECT * FROM Price WHERE item LIKE 'A____'; SELECT * FROM Price WHERE item LIKE '%P%'; SELECT * FROM Price WHERE item LIKE 'P%'; -- Insert values from another table INSERT INTO sales SELECT * FROM Price; SELECT Max(QTY) AS Maximum FROM Price SELECT * FROM Price WHERE Wholesale IS NOT NULL; SELECT * FROM price WHERE item NOT LIKE NULL; SELECT * FROM price WHERE item <> ''; SELECT * FROM Price WHERE item IN ('Apple', 'Potato'); SELECT * FROM Price WHERE QTY IN (1000, 7000); SELECT * FROM Price WHERE Wholesale BETWEEN 1 AND 4; SELECT * FROM price WHERE wholesale BETWEEN 1.2 AND 2; SELECT * FROM price WHERE NOT item = 'Orange'; SELECT COUNT(item) AS Total FROM Price; SELECT COUNT(DISTINCT item) AS Total FROM Price; SELECT SUM(QTY) AS Total, AVG(QTY) AS Average FROM Price; SELECT item, SUM(QTY) AS Total, AVG(QTY) AS Average FROM Price GROUP BY item ORDER BY item; INSERT INTO Price VALUES ('Fresh Almond', 10, 1000); SELECT * FROM Price WHERE Wholesale>=5; SELECT SUM(QTY) AS Total FROM Price WHERE Wholesale>=5; SELECT *, QTY*Wholesale AS SSS FROM Price ORDER BY SSS DESC; SELECT wholesale, COUNT(wholesale) AS ccc FROM price GROUP BY wholesale; SELECT item, SUM(QTY) AS Total , AVG(Wholesale) AS Average FROM Price GROUP BY item ORDER BY Total DESC; SELECT item, COUNT(item) AS Qty , ROUND(AVG(Wholesale),1) AS Average FROM Price GROUP BY item ORDER BY item; SELECT item, COUNT(Wholesale) AS Qty FROM Price GROUP BY item ORDER BY item; SELECT item, COUNT(DISTINCT Wholesale) AS Qty FROM Price GROUP BY item ORDER BY item; SELECT ROUND(MAX(QTY/Wholesale),1) AS 'Maximum' FROM Price; SELECT ROUND(MIN(QTY/Wholesale),1) AS 'Minimum' FROM Price; SELECT ROUND(AVG(QTY/Wholesale),1) AS 'Mean' FROM Price; SELECT ROUND(MAX(QTY/Wholesale),1) AS 'Maximum', ROUND(MIN(QTY/Wholesale),1) AS 'Minimum', ROUND(AVG(QTY/Wholesale),1) AS 'Mean'FROM Price; DELETE FROM price WHERE item = 'Apple'; ALTER TABLE price ADD number INT; SELECT item, MAX(wholesale) AS Max_Price FROM price GROUP BY item ORDER BY Max_Price DESC; -- Date SELECT GETDATE(); SELECT DATEPART(year, '2017/08/25'); SELECT DATEPART(month, '2017/08/25'); SELECT DATEPART(day, '2017/08/25'); SELECT DATEPART(YEAR, GETDATE()) AS Today_Year; SELECT ABS(-100); SELECT FLOOR(1.7); SELECT ROUND(1.7,0); SELECT CEILING(2.3); SELECT ROUND(2.3,0); UPDATE Price SET QTY=25000 WHERE item='watermelon'; CREATE TABLE New (ID int NOT NULL Primary Key, Name Varchar(60) NOT NULL, Gender CHAR(1) NOT NULL, Gender_ID tinyint NOT NULL); ALTER TABLE New ADD FOREIGN KEY (Gender_ID) REFERENCES tblGender(G_Code); DROP TABLE New; SELECT * FROM New; -- Give the placement of the first apperance of letter in a string SELECT CHARINDEX('a', 'Katayoon'); SELECT CHARINDEX('a', 'Katayoon', 1); SELECT CHARINDEX('a', 'Katayoon', 3); SELECT LOWER ('KATAYOON'); SELECT UPPER ('katayoon'); SELECT REPLACE ('katayoun', 'ou', 'oo'); SELECT UPPER(LEFT('katayoon',1))+LOWER(SUBSTRING('katayoon',2,LEN('katayoon'))); SELECT REPLICATE ('Katayoon ', 3); SELECT RTRIM ('Katayoon ') + ' Mehr'; SELECT LTRIM (' Katayoon') + ' Mehr'; SELECT LTRIM (RTRIM(' Katayoon ')) + ' Mehr'; SELECT ('Katayoon ') + ' Mehr'; SELECT SOUNDEX ('Juice'), SOUNDEX ('Jucy'); SELECT SOUNDEX ('Juice'), SOUNDEX ('Banana'); SELECT SOUNDEX ('Katayoon'), SOUNDEX ('Kataun'); SELECT SOUNDEX ('car'), SOUNDEX ('war'); SELECT SOUNDEX ('Leanna'), SOUNDEX ('Meloryna'); SELECT DIFFERENCE('Katayoon', 'Kataun'); SELECT DIFFERENCE('Leanna', 'Meloryna'); SELECT 'Kati' + SPACE (10) + 'Mehr'; SELECT STUFF ('KatiMehr', 4,1,'ayoon'); --- Starting from character number 4 and change 1 character with 'ayoon', some characters will be added SELECT STUFF ('KatayoonMehr', 4,5,'i'); --- Starting from character number 4 and change 5 characters with 'i', some characters will be droped SELECT UNICODE('K'); SELECT UNICODE(''); SELECT SUBSTRING ('abcdefg', 3, 2); --- Get a substring from the original string starting at character number 3 and just picks 2 characters ------------------------------------------------------------ -- Day 3 ------------------------------------------------------------ CREATE TABLE employees ( sno char(5) NOT NULL PRIMARY KEY, F_Name varchar(50) NOT NULL, L_Name varchar(60) NOT NULL, Salary float, Position varchar(15)) ; DROP TABLE employees; INSERT INTO employees VALUES ('SL100', 'John', 'White', 30000.00, 'Manager'), ('SL101', 'Susan', 'Brand', 24000.00, 'Manager'), ('SL102', 'David', 'Ford', 12000.00, 'Project Manager'), ('SL103', 'Ann', 'Beach', 12000.00, 'Project Manager'), ('SL104', 'Mary', 'Howe', 9000.00, 'Project Manager'); SELECT * FROM employees; SELECT Position AS 'Role', COUNT(Position) AS '#employee', SUM(Salary) AS 'Total_Salary', AVG(Salary) AS 'Average_Salary' FROM employees GROUP BY Position ORDER BY Average_Salary DESC; ALTER TABLE employees ADD bno char(5); ALTER TABLE employees DROP COLUMN bno; UPDATE employees SET bno=10 WHERE sno='SL100'; UPDATE employees SET bno=20 WHERE sno='SL101'; UPDATE employees SET bno=30 WHERE sno='SL102'; UPDATE employees SET bno=40 WHERE sno='SL103'; UPDATE employees SET bno=50 WHERE sno='SL104'; SELECT bno, COUNT(sno) AS Qty, SUM(Salary) AS 'Total_Salary' FROM employees GROUP BY bno ORDER BY bno; SELECT bno, COUNT(sno) AS Qty, SUM(Salary) AS 'Total_Salary' FROM employees GROUP BY bno HAVING COUNT(sno)>=2 ORDER BY bno; ALTER TABLE employees ADD Gender char(1) CHECK( Gender IN ('M', 'F')); ALTER TABLE employees ADD City varchar(20); /* Important: how to replace a wrong value */ SELECT REPLACE (bno, 'b2', 'B2') FROM employees; ---> This is temporary just in output SELECT UPPER(bno), * FROM employees;---> This is temporary just in output UPDATE employees SET bno='B2' WHERE bno='b2'; ---> This changes the data SELECT * FROM employees ORDER BY City DESC, L_Name; --If at the time of table creation, forget to set the primary key ALTER TABLE employees ADD Primary key (sno); ALTER TABLE employees DROP FOREIGN KEY employees_ibfk_1; ALTER TABLE employees DROP PRIMARY KEY; ---- Conversion ---- CAST and CONVERT are the same, CAST is ANSI but CONVERT can be used just in SQL Server Management SELECT CONVERT(varchar(30), 56); SELECT CONVERT(varchar(5), 2019 ) + ' ' +'Kati'; SELECT CONVERT(int, '12') SELECT CONVERT(int, 'Kati') ----> Error SELECT item, item + ' - ' + CAST(wholesale AS nvarchar) + ' - ' + CAST(QTY AS nvarchar) AS 'item - wholesale - QTY' FROM Price; SELECT REPLACE(Wholesale, '.', ',') FROM Price; SELECT CONVERT(nvarchar(30), getdate(), 100); SELECT CONVERT(nvarchar(30), getdate(), 120); SELECT CONVERT(nvarchar(30), getdate(), 130); SELECT CONVERT(decimal(6,4), 9.5) ----> 9.5000 SELECT CAST(9.5 AS decimal(6,4)) ----> 9.5000 ------------------------------------------------------------ -- Day 4 ------------------------------------------------------------ ---- All, any, some ---- CREATE TABLE T1_YourName (ID int); INSERT into T1_YourName VALUES (1) ; INSERT into T1_YourName VALUES (2) ; INSERT into T1_YourName VALUES (3) ; INSERT into T1_YourName VALUES (4) ; ----Nested Query ----- SELECT * FROM T1_YourName; SELECT COUNT(ID) AS Total, (SELECT COUNT(ID) FROM T1_YourName WHERE ID>2) AS Conditional_Total FROM T1_YourName; ---- IF / ELSE ---- PRINT ---- IF 3 < SOME (SELECT ID FROM T1_YourName) PRINT 'TRUE' ELSE PRINT 'FALSE'; IF 3 < Any (SELECT ID FROM T1_YourName) PRINT 'TRUE' ELSE PRINT 'FALSE'; IF 3 < ALL (SELECT ID FROM T1_YourName) PRINT 'TRUE' ELSE PRINT 'FALSE'; IF 4 >= ALL (SELECT ID FROM T1_YourName) PRINT 'TRUE' ELSE PRINT 'FALSE'; ---- CASE ---- WHEN ---- /* This is just to view and No change on the table */ SELECT ID, CASE WHEN ID=1 THEN 'First One' WHEN ID=2 THEN 'Second One' ELSE 'Other' END AS Result FROM T1_YourName; /* To add a new coulmn permanently with those values: */ ALTER TABLE T1_YourName ADD Def varchar(15); UPDATE T1_YourName SET Def='First' WHERE ID=1; UPDATE T1_YourName SET Def='Second' WHERE ID=2; UPDATE T1_YourName SET Def='Third' WHERE ID=3; UPDATE T1_YourName SET Def='Forth' WHERE ID=4; SELECT OrderID, Quantity, CASE WHEN Quantity > 30 THEN 'The quantity is greater than 30' WHEN Quantity = 30 THEN 'The quantity is 30' ELSE 'The quantity is under 30' END AS QuantityText FROM OrderDetails; ---------------------------------------------- CREATE TABLE Customers ( ID INT NOT NULL PRIMARY KEY, Name NVARCHAR(50), City NVARCHAR(20), Country NVARCHAR(20), Phone BIGINT) ; SELECT * FROM Customers; INSERT INTO Customers VALUES (1, 'Kati', 'Toronto', 'Canada', 6409086767); INSERT INTO Customers VALUES (2, 'Rayan', '', 'Iran',22006405); INSERT INTO Customers VALUES (3, 'Mina', 'Golpayegan', 'Iran', NULL); INSERT INTO Customers VALUES (4, 'Leanna', 'Toronto', 'Canada', NULL); INSERT INTO Customers VALUES (5, 'Maria','Montreal', 'Canada', 5145327867); INSERT INTO Customers VALUES (6, 'Lili','Golpayegan',NULL, NULL); INSERT INTO Customers VALUES (7, 'Lilian','Toronto', 'Canada', NULL); INSERT INTO Customers VALUES (8, 'Locus','Toronto', NULL, NULL); INSERT INTO Customers VALUES (9, 'Shilpy','Dehli','India',43590006 ); --DELETE FROM Customers WHERE ID=6; SELECT Name, City, Country FROM Customers ORDER BY Country, City; SELECT Name, City, Country FROM Customers ORDER BY (CASE WHEN City IS NULL THEN Country ELSE City END); ---------------------------------------------- USE Meloryna_7 --SQL Script to create tblEmployee table: CREATE TABLE tblEmployee ( Id INT PRIMARY KEY, Name NVARCHAR(30), Salary INT, Gender NVARCHAR(10), DepartmentId INT ); --SQL Script to create tblDepartment table: CREATE TABLE tblDepartment ( DeptId INT PRIMARY KEY, DeptName NVARCHAR(20) ); --Insert data into tblDepartment table INSERT INTO tblDepartment VALUES (1,'IT'); INSERT INTO tblDepartment VALUES (2,'Payroll'); INSERT INTO tblDepartment VALUES (3,'HR'); INSERT INTO tblDepartment VALUES (4,'Admin'); INSERT INTO tblDepartment VALUES (5,'Marketing'); --Insert data into tblEmployee table INSERT INTO tblEmployee VALUES (1,'John', 5000, 'Male', 3); INSERT INTO tblEmployee VALUES (2,'Mike', 3400, 'Male', 2); INSERT INTO tblEmployee VALUES (3,'Pam', 6000, 'Female', 1); INSERT INTO tblEmployee VALUES (4,'Todd', 4800, 'Male', 4); INSERT INTO tblEmployee VALUES (5,'Sara', 3200, 'Female', 1); INSERT INTO tblEmployee VALUES (6,'Ben', 4800, 'Male', 3); INSERT INTO tblEmployee VALUES (7,'James', 4800, 'Male', Null); INSERT INTO tblEmployee values (8,'Tom', 4800, 'Male', Null); SELECT * FROM tblDepartment; SELECT * FROM tblEmployee; -- Subquery (Nested Query) SELECT Name, Gender FROM (SELECT * FROM tblEmployee) AS A; --- Subquery with WITH WITH Name_tbl (Name, Gender) AS (SELECT Name, Gender FROM tblEmployee) SELECT * FROM Name_tbl; WITH Name_tbl_M AS (SELECT * FROM tblEmployee) SELECT * FROM Name_tbl_M WHERE Gender='Male'; WITH Name_tbl_F (Id,Name, Gender, Salary, Depertment) AS (SELECT * FROM tblEmployee WHERE Gender='Female') SELECT * FROM Name_tbl_F; ------------------------------------------------------------ -- Day 5 ------------------------------------------------------------ ---- Self Join ----- USE Meloryna SELECT * FROM employees; SELECT E.sno, E.bno, CONCAT(E.F_NAME, ' ', E.L_Name) AS Employee, CONCAT(M.F_NAME, ' ', M.L_Name) AS Manager FROM Employees E INNER JOIN Employees M ON M.sno=E.bno; /*Without Cancat */ SELECT E.bno, E.sno, E.F_NAME AS Employee_Name , E.L_Name AS Employee_LastName, M.F_NAME AS Manager_Name, M.L_Name AS Manager_LastName FROM Employees E INNER JOIN Employees M ON M.sno=E.bno; --Inner join/Join SELECT Id, Name, Salary, Gender, DeptName, DepartmentId FROM tblEmployee JOIN tblDepartment ON DepartmentId = DeptId; --OR SELECT E.* , D.* FROM tblEmployee E JOIN tblDepartment D ON E.DepartmentId = D.DeptId; -----OLD VERSION ------ SELECT Id, Name, Salary, Gender, DeptName, DepartmentId FROM tblEmployee, tblDepartment WHERE DepartmentId = DeptId; SELECT * FROM tblEmployee; SELECT * FROM tblDepartment; --Left join SELECT Id, Name, Salary, Gender, DeptName, DepartmentId FROM tblEmployee LEFT JOIN tblDepartment ON tblEmployee.DepartmentId = tblDepartment.DeptId; --WHERE tblEmployee.DepartmentId IS NULL --Right join SELECT Id, Name, Salary, Gender, DeptName, DepartmentId, DeptId FROM tblEmployee RIGHT JOIN tblDepartment ON tblEmployee.DepartmentId = tblDepartment.DeptId ORDER BY Id; -- Full outer join/ Full join SELECT Id, Name, Salary, Gender, DeptName FROM tblEmployee FULL JOIN tblDepartment ON tblEmployee.DepartmentId = tblDepartment.DeptId; --Cross join --Cartesian product between the two tables SELECT Name, Gender, Salary, DeptName FROM tblEmployee CROSS JOIN tblDepartment; SELECT * FROM tblEmployee, tblDepartment; /* Consider you have Car table which holds model information Car(Make, Model) and AvaliableColorOption(Color) All available car options can be achieved by cross join.. Car table: 1. Benz C-Class 2. Benz S-Class AvaliableColorOption: 1. Red 2. Green Cartesian Product of the tables will yield: 1. Benz C-Class Red 2. Benz S-Class Red 3. Benz C-Class Green 4. Benz S-Class Green*/ --subqueries --The MS SQL Server uses the IDENTITY keyword to perform an auto-increment feature. CREATE TABLE tblProducts ( Id INT IDENTITY PRIMARY KEY, Name NVARCHAR(50), Description NVARCHAR(250) ); CREATE TABLE tblProductSales ( Id INT IDENTITY PRIMARY KEY, ProductId INT FOREIGN KEY REFERENCES tblProducts(Id), UnitPrice INT, QuantitySold INT ); SELECT * FROM tblProducts; SELECT * FROM tblProductSales; INSERT INTO tblProducts VALUES ('TV', '52 inch black color LCD TV'); INSERT INTO tblProducts VALUES ('Laptop', 'Very thin black color acer laptop'); INSERT INTO tblProducts VALUES ('Desktop', 'HP high performance desktop'); INSERT INTO tblProductSales VALUES (3, 450, 5); INSERT INTO tblProductSales VALUES (2, 250, 7); INSERT INTO tblProductSales VALUES (3, 450, 4); INSERT INTO tblProductSales VALUES (3, 450, 9); SELECT P.*, S.* FROM tblProducts P INNER JOIN tblProductSales S ON P.Id=S.ProductId; SELECT P.*, S.* FROM tblProducts P LEFT JOIN tblProductSales S ON P.Id=S.ProductId; SELECT P.*, S.* FROM tblProducts P RIGHT JOIN tblProductSales S ON P.Id=S.ProductId; SELECT P.*, S.* FROM tblProducts P FULL JOIN tblProductSales S ON P.Id=S.ProductId; --Retrieve products that are not at all sold? SELECT Id, Name, Description FROM tblProducts WHERE Id NOT IN (SELECT DISTINCT ProductId FROM tblProductSales); --OR SELECT P.* FROM tblProducts P LEFT JOIN tblProductSales S ON P.Id=S.ProductId WHERE S.ProductId IS NULL; -----IMPORTANT-------------- -----Correlated Query ------ -----WHAT IS THE TOTAL QUANTITY OF SALE PER ITEM? SELECT Name, (SELECT SUM(QuantitySold) FROM tblProductSales WHERE ProductId = tblProducts.Id) AS TotalQty FROM tblProducts; SELECT ProductId, SUM(QuantitySold) FROM tblProductSales GROUP BY ProductId; --- OR By Left Join ----- SELECT P.Name, SUM(S.QuantitySold) FROM tblProducts P LEFT JOIN tblProductSales S ON P.Id=S.ProductId GROUP BY P.Name;
true
169cde29e4b338f4c8f9b2827783f0a3e50bf764
SQL
rakaprmda/datagrip
/Order by seller, delivery fee, buyer.sql
UTF-8
2,641
3.890625
4
[]
no_license
SELECT date_trunc('month', timezone('Asia/Jakarta',"order".created_at)) order_date , ou.order_id , s.unique_id , city.name city , province.name province , s.address_latitude , s.address_longitude , "order".id , CASE WHEN fee_group.name = 'ONLINE' THEN fee_group.name ELSE 'OFFLINE' END acquisition_channel , CASE WHEN payment.payment_method_detail_type LIKE 'BANK_TRANSFER%' THEN 'BANK_TRANSFER' WHEN payment.payment_method_detail_type LIKE 'VIRTUAL_ACCOUNT%' THEN 'VIRTUAL_ACCOUNT' ELSE payment.payment_method_detail_type END payment_method , ou.GMV_order , ou.GMV_final , order_fulfilment.status fulfilment_status , order_fulfilment.delivery_method FROM "gada-marketplace".transaction t LEFT JOIN "gada-marketplace"."order" ON t.id = "order".transaction_id LEFT JOIN "gada-marketplace".order_fulfilment ON "order".id = order_fulfilment.order_id LEFT JOIN "gada-marketplace".payment ON t.id = payment.transaction_id LEFT JOIN "gada-marketplace".store s ON t.buyer_store_id = s.id LEFT JOIN "gada-marketplace".store seller ON "order".seller_store_id = seller.id LEFT JOIN "gada-marketplace".fee_group ON s.fee_group_id = fee_group.id LEFT JOIN "gada-marketplace".address_area city on city.id = s.address_city_id LEFT JOIN "gada-marketplace".address_area province on province.id = city.parent_area_id LEFT JOIN ( SELECT ou.order_id --, sum(seller_fee_amount) seller_fee_amount --, sum(seller_fee_discount) seller_fee_discount --, sum(seller_fee_amount - seller_fee_discount) total_nett_fee , sum(unit_price* ordered_quantity) GMV_order --, sum(unit_price* CASE WHEN of.delivery_method = 'GADA_LOGISTIC' THEN (final_picked_quantity - final_returned_quantity) ELSE final_delivered_quantity END) GMV_final_seller , sum(unit_price* final_delivered_quantity) GMV_final FROM "gada-marketplace".order_unit ou LEFT JOIN "gada-marketplace".order_fulfilment of ON ou.order_id = of.order_id GROUP BY ou.order_id ) ou ON "order".id = ou.order_id WHERE 1=1 AND "order".created_at > '20210201' AND "order".created_at < '20210225' AND order_fulfilment.status = 'COMPLETED' AND GMV_order <= 15000000 AND s.unique_id in ( 'GADA-gRwb' )
true
e64dde5fa2ba1011a10f2dc79d992ac59aa7a60f
SQL
MGoldstein18/learningPython
/hacker_news_sql.sql
UTF-8
762
4.09375
4
[]
no_license
/*Analyse data from Hacker News using SQL*/ SELECT title, score FROM hacker_news ORDER BY 2 DESC LIMIT 5; SELECT user, SUM(score) AS 'Score' FROM hacker_news GROUP BY 1 HAVING Score > 200 ORDER BY Score DESC; SELECT (517 + 309 + 304 + 282) / 6366.0; SELECT user, COUNT(*) FROM hacker_news WHERE url LIKE '%watch?v=dQw4w9WgXcQ' GROUP BY user ORDER BY COUNT(*) DESC; SELECT CASE WHEN url LIKE '%github.com%' THEN 'Github' WHEN url LIKE '%medium.com%' THEN 'Medium' WHEN url LIKE '%nytimes.com%' THEN 'New York Times' ELSE 'Other' END AS 'Source', COUNT(*) FROM hacker_news GROUP BY 1; SELECT strftime('%H', timestamp) AS 'Hour', ROUND(AVG(score), 1) AS 'Ave_Score', COUNT(*) AS 'Num_Stories' FROM hacker_news WHERE Hour IS NOT NULL GROUP BY 1;
true
1233a07f4b64c4ef936b4658c1bc50af8548db91
SQL
j7ng/CLFY_SA
/SA/Tables/TABLE_COMMUNICATION.sql
UTF-8
2,642
3.25
3
[]
no_license
CREATE TABLE sa.table_communication ( objid NUMBER, dev NUMBER, title VARCHAR2(255 BYTE), s_title VARCHAR2(255 BYTE), "TEXT" LONG, creation_time DATE, direction NUMBER, to_list VARCHAR2(255 BYTE), from_address VARCHAR2(255 BYTE), delivery_status NUMBER, auto_exec_ind NUMBER, communication2dialogue NUMBER, communication2channel NUMBER, cmcn_respons2gbst_elm NUMBER, cmcn2template NUMBER ); ALTER TABLE sa.table_communication ADD SUPPLEMENTAL LOG GROUP dmtsora577988433_0 (auto_exec_ind, cmcn2template, cmcn_respons2gbst_elm, communication2channel, communication2dialogue, creation_time, delivery_status, dev, direction, from_address, objid, s_title, title, to_list) ALWAYS; COMMENT ON TABLE sa.table_communication IS 'Records an instance of a communication on a channel; e.g., a specific email'; COMMENT ON COLUMN sa.table_communication.objid IS 'Internal record number'; COMMENT ON COLUMN sa.table_communication.dev IS 'Row version number for mobile distribution purposes'; COMMENT ON COLUMN sa.table_communication.title IS 'Title or subject of the communication'; COMMENT ON COLUMN sa.table_communication."TEXT" IS 'Text of the communication after conversion from any medium-specific data format'; COMMENT ON COLUMN sa.table_communication.creation_time IS 'Date and time the communication was created'; COMMENT ON COLUMN sa.table_communication.direction IS 'The direction of the communication; i.e., 0=unknown, 1=inbound, 2=outbound, 3=both, default=0'; COMMENT ON COLUMN sa.table_communication.to_list IS 'Contains the list of the TO addresses'; COMMENT ON COLUMN sa.table_communication.from_address IS 'For email, contains the email address of the sender'; COMMENT ON COLUMN sa.table_communication.delivery_status IS 'The delivery status of the communication; i.e., 0=draft, 1=pending, 2=sent, 3=received, 4=failed, 5=bounced, default=0'; COMMENT ON COLUMN sa.table_communication.auto_exec_ind IS 'Indicates if the communication was generated and sent without review; i.e., 0=no, suggested only, 1=yes, sent automatically, default=0. Derives from cl_action.auto_exec_ind at time of rule execution'; COMMENT ON COLUMN sa.table_communication.communication2dialogue IS 'Dialogue in which the communication occurred'; COMMENT ON COLUMN sa.table_communication.communication2channel IS 'Channel on which the communication occurred'; COMMENT ON COLUMN sa.table_communication.cmcn_respons2gbst_elm IS 'Requested response type of the communication'; COMMENT ON COLUMN sa.table_communication.cmcn2template IS 'For communications generated from a template, the template generated from';
true
b2724ae5eae808f4e719a658e0bc7f0df6d48ce8
SQL
18838988676/OAByView
/system_oa.sql
UTF-8
10,826
2.96875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50626 Source Host : localhost:3306 Source Database : system_oa Target Server Type : MYSQL Target Server Version : 50626 File Encoding : 65001 Date: 2017-08-25 00:39:38 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for t_department -- ---------------------------- DROP TABLE IF EXISTS `t_department`; CREATE TABLE `t_department` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `parentId` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK34cgwrwkelqr4huehalvmu9sk` (`parentId`), CONSTRAINT `FK34cgwrwkelqr4huehalvmu9sk` FOREIGN KEY (`parentId`) REFERENCES `t_department` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_department -- ---------------------------- INSERT INTO `t_department` VALUES ('1', '111', '11111', null); INSERT INTO `t_department` VALUES ('2', '77', '77', '1'); -- ---------------------------- -- Table structure for t_privilege -- ---------------------------- DROP TABLE IF EXISTS `t_privilege`; CREATE TABLE `t_privilege` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `parentId` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FKfbl34byrvoimp5brbgbvpk5bp` (`parentId`), CONSTRAINT `FKfbl34byrvoimp5brbgbvpk5bp` FOREIGN KEY (`parentId`) REFERENCES `t_privilege` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_privilege -- ---------------------------- INSERT INTO `t_privilege` VALUES ('1', '系统管理', null, null); INSERT INTO `t_privilege` VALUES ('2', '岗位管理', '/role_list', '1'); INSERT INTO `t_privilege` VALUES ('3', '部门管理', '/department_list', '1'); INSERT INTO `t_privilege` VALUES ('4', '用户管理', '/user_list', '1'); INSERT INTO `t_privilege` VALUES ('5', '岗位列表', '/role_list', '2'); INSERT INTO `t_privilege` VALUES ('6', '岗位删除', '/role_delete', '2'); INSERT INTO `t_privilege` VALUES ('7', '岗位添加', '/role_add', '2'); INSERT INTO `t_privilege` VALUES ('8', '岗位修改', '/role_edit', '2'); INSERT INTO `t_privilege` VALUES ('9', '部门列表', '/department_list', '3'); INSERT INTO `t_privilege` VALUES ('10', '部门删除', '/department_delete', '3'); INSERT INTO `t_privilege` VALUES ('11', '部门添加', '/department_add', '3'); INSERT INTO `t_privilege` VALUES ('12', '部门修改', '/department_edit', '3'); INSERT INTO `t_privilege` VALUES ('13', '用户列表', '/user_list', '4'); INSERT INTO `t_privilege` VALUES ('14', '用户删除', '/user_delete', '4'); INSERT INTO `t_privilege` VALUES ('15', '用户添加', '/user_add', '4'); INSERT INTO `t_privilege` VALUES ('16', '用户修改', '/user_edit', '4'); INSERT INTO `t_privilege` VALUES ('17', '初始化密码', '/user_initPassword', '4'); INSERT INTO `t_privilege` VALUES ('18', '网上交流', null, null); INSERT INTO `t_privilege` VALUES ('19', '论坛管理', '/forumManager_list', '18'); INSERT INTO `t_privilege` VALUES ('20', '论坛', '/forum_list', '18'); INSERT INTO `t_privilege` VALUES ('21', '审批流转', null, null); INSERT INTO `t_privilege` VALUES ('22', '审批流程管理', '/processDefinition_list', '21'); INSERT INTO `t_privilege` VALUES ('23', '申请模板管理', '/template_list', '21'); INSERT INTO `t_privilege` VALUES ('24', '起草申请', '/flow_templateList', '21'); INSERT INTO `t_privilege` VALUES ('25', '待我审批', '/flow_myTaskList', '21'); INSERT INTO `t_privilege` VALUES ('26', '我的申请查询', '/flow_myApplicationList', '21'); -- ---------------------------- -- Table structure for t_privilege_copy -- ---------------------------- DROP TABLE IF EXISTS `t_privilege_copy`; CREATE TABLE `t_privilege_copy` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `parentId` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FKfbl34byrvoimp5brbgbvpk5bp` (`parentId`), CONSTRAINT `t_privilege_copy_ibfk_1` FOREIGN KEY (`parentId`) REFERENCES `t_privilege` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_privilege_copy -- ---------------------------- INSERT INTO `t_privilege_copy` VALUES ('1', '系统管理', null, null); INSERT INTO `t_privilege_copy` VALUES ('2', '岗位管理', '/role_list', '1'); INSERT INTO `t_privilege_copy` VALUES ('3', '部门管理', '/department_list', '1'); INSERT INTO `t_privilege_copy` VALUES ('4', '用户管理', '/user_list', '1'); INSERT INTO `t_privilege_copy` VALUES ('5', '岗位列表', '/role_list', '2'); INSERT INTO `t_privilege_copy` VALUES ('6', '岗位删除', '/role_delete', '2'); INSERT INTO `t_privilege_copy` VALUES ('7', '岗位添加', '/role_add', '2'); INSERT INTO `t_privilege_copy` VALUES ('8', '岗位修改', '/role_edit', '2'); INSERT INTO `t_privilege_copy` VALUES ('9', '部门列表', '/department_list', '3'); INSERT INTO `t_privilege_copy` VALUES ('10', '部门删除', '/department_delete', '3'); INSERT INTO `t_privilege_copy` VALUES ('11', '部门添加', '/department_add', '3'); INSERT INTO `t_privilege_copy` VALUES ('12', '部门修改', '/department_edit', '3'); INSERT INTO `t_privilege_copy` VALUES ('13', '用户列表', '/user_list', '4'); INSERT INTO `t_privilege_copy` VALUES ('14', '用户删除', '/user_delete', '4'); INSERT INTO `t_privilege_copy` VALUES ('15', '用户添加', '/user_add', '4'); INSERT INTO `t_privilege_copy` VALUES ('16', '用户修改', '/user_edit', '4'); INSERT INTO `t_privilege_copy` VALUES ('17', '初始化密码', '/user_initPassword', '4'); INSERT INTO `t_privilege_copy` VALUES ('18', '网上交流', null, null); INSERT INTO `t_privilege_copy` VALUES ('19', '论坛管理', '/forumManager_list', '18'); INSERT INTO `t_privilege_copy` VALUES ('20', '论坛', '/forum_list', '18'); INSERT INTO `t_privilege_copy` VALUES ('21', '审批流转', null, null); INSERT INTO `t_privilege_copy` VALUES ('22', '审批流程管理', '/processDefinition_list', '21'); INSERT INTO `t_privilege_copy` VALUES ('23', '申请模板管理', '/template_list', '21'); INSERT INTO `t_privilege_copy` VALUES ('24', '起草申请', '/flow_templateList', '21'); INSERT INTO `t_privilege_copy` VALUES ('25', '待我审批', '/flow_myTaskList', '21'); INSERT INTO `t_privilege_copy` VALUES ('26', '我的申请查询', '/flow_myApplicationList', '21'); -- ---------------------------- -- Table structure for t_role -- ---------------------------- DROP TABLE IF EXISTS `t_role`; CREATE TABLE `t_role` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_role -- ---------------------------- INSERT INTO `t_role` VALUES ('1', '1', '1'); INSERT INTO `t_role` VALUES ('2', '2', '2'); -- ---------------------------- -- Table structure for t_role_privilege -- ---------------------------- DROP TABLE IF EXISTS `t_role_privilege`; CREATE TABLE `t_role_privilege` ( `roleId` bigint(20) NOT NULL, `privilegeId` bigint(20) NOT NULL, PRIMARY KEY (`privilegeId`,`roleId`), KEY `FKil6p8g7lxstpuw9rjjvkofst9` (`roleId`), CONSTRAINT `FK6afqb0idlldi9mnynsbn7wgjs` FOREIGN KEY (`privilegeId`) REFERENCES `t_privilege` (`id`), CONSTRAINT `FKil6p8g7lxstpuw9rjjvkofst9` FOREIGN KEY (`roleId`) REFERENCES `t_role` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_role_privilege -- ---------------------------- INSERT INTO `t_role_privilege` VALUES ('1', '1'); INSERT INTO `t_role_privilege` VALUES ('1', '2'); INSERT INTO `t_role_privilege` VALUES ('1', '3'); INSERT INTO `t_role_privilege` VALUES ('1', '4'); INSERT INTO `t_role_privilege` VALUES ('1', '5'); INSERT INTO `t_role_privilege` VALUES ('1', '6'); INSERT INTO `t_role_privilege` VALUES ('1', '7'); INSERT INTO `t_role_privilege` VALUES ('1', '8'); INSERT INTO `t_role_privilege` VALUES ('1', '9'); INSERT INTO `t_role_privilege` VALUES ('1', '10'); INSERT INTO `t_role_privilege` VALUES ('1', '11'); INSERT INTO `t_role_privilege` VALUES ('1', '12'); INSERT INTO `t_role_privilege` VALUES ('1', '13'); INSERT INTO `t_role_privilege` VALUES ('1', '14'); INSERT INTO `t_role_privilege` VALUES ('1', '15'); INSERT INTO `t_role_privilege` VALUES ('1', '16'); INSERT INTO `t_role_privilege` VALUES ('1', '17'); -- ---------------------------- -- Table structure for t_user -- ---------------------------- DROP TABLE IF EXISTS `t_user`; CREATE TABLE `t_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `loginName` varchar(255) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `gender` varchar(255) DEFAULT NULL, `phoneNumber` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `departmentId` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FKmfvb2bisqbpb1tpbvxhgt0hb2` (`departmentId`), CONSTRAINT `FKmfvb2bisqbpb1tpbvxhgt0hb2` FOREIGN KEY (`departmentId`) REFERENCES `t_department` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_user -- ---------------------------- INSERT INTO `t_user` VALUES ('1', 'admin', 'admin', '超级管理员', null, null, null, null, null); INSERT INTO `t_user` VALUES ('2', '1', '1', '1', '男', '1', '1', '1', '1'); INSERT INTO `t_user` VALUES ('3', '', null, '', null, '', '', '', '1'); INSERT INTO `t_user` VALUES ('4', '', null, '', null, '', '', '', '1'); -- ---------------------------- -- Table structure for t_user_role -- ---------------------------- DROP TABLE IF EXISTS `t_user_role`; CREATE TABLE `t_user_role` ( `userId` bigint(20) NOT NULL, `roleId` bigint(20) NOT NULL, PRIMARY KEY (`roleId`,`userId`), KEY `FK3sap2l8em49wuodlmy5nrc8wq` (`userId`), CONSTRAINT `FK3sap2l8em49wuodlmy5nrc8wq` FOREIGN KEY (`userId`) REFERENCES `t_user` (`id`), CONSTRAINT `FKaassx26gtc0n2e3xbk2fxn8yq` FOREIGN KEY (`roleId`) REFERENCES `t_role` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_user_role -- ---------------------------- INSERT INTO `t_user_role` VALUES ('1', '1'); INSERT INTO `t_user_role` VALUES ('4', '1'); INSERT INTO `t_user_role` VALUES ('4', '2');
true
fd0eec3bfc36daf434ff276c8f7d1250b4553a0b
SQL
ahmadharis-ux/PraktikumBasdatUas
/10119266_Kepegawaian.sql
UTF-8
3,372
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 14 Agu 2021 pada 02.30 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `db_ahmadharis` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `gaji` -- CREATE TABLE `gaji` ( `id_gaji` int(11) NOT NULL, `jumlah` varchar(128) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `gaji` -- INSERT INTO `gaji` (`id_gaji`, `jumlah`) VALUES (1, '8000000'), (8, '15000000'), (10, '30000000'), (11, '25000000'), (12, '20000000'); -- -------------------------------------------------------- -- -- Struktur dari tabel `jabatan` -- CREATE TABLE `jabatan` ( `id_jabatan` int(11) NOT NULL, `jabatan` varchar(128) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `jabatan` -- INSERT INTO `jabatan` (`id_jabatan`, `jabatan`) VALUES (1, 'Direksi'), (2, 'Direktur Utama'), (3, 'Direktur Keuangan'), (4, 'Direktur Personalia'); -- -------------------------------------------------------- -- -- Struktur dari tabel `pegawai` -- CREATE TABLE `pegawai` ( `id_pegawai` int(11) NOT NULL, `nip` int(11) DEFAULT NULL, `nama` varchar(128) DEFAULT NULL, `jk` varchar(128) DEFAULT NULL, `tlp` varchar(128) DEFAULT NULL, `alamat` varchar(250) DEFAULT NULL, `jabatan_id` int(11) DEFAULT NULL, `gaji_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `pegawai` -- INSERT INTO `pegawai` (`id_pegawai`, `nip`, `nama`, `jk`, `tlp`, `alamat`, `jabatan_id`, `gaji_id`) VALUES (13, 10119266, 'Ahmad Haris', 'pria', '085343133886', 'bandung', 1, 10), (22, 9867598, 'Aditia Rahman', 'Pria', '088187694563', 'Cianjur, Kec Karangtengah, Kp babakan bandung, rt 02 rw 03, Jawa Barat', 2, 11); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `gaji` -- ALTER TABLE `gaji` ADD PRIMARY KEY (`id_gaji`); -- -- Indeks untuk tabel `jabatan` -- ALTER TABLE `jabatan` ADD PRIMARY KEY (`id_jabatan`), ADD KEY `id_jabatan` (`id_jabatan`), ADD KEY `id_jabatan_2` (`id_jabatan`); -- -- Indeks untuk tabel `pegawai` -- ALTER TABLE `pegawai` ADD PRIMARY KEY (`id_pegawai`), ADD KEY `jabatan_id` (`jabatan_id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `gaji` -- ALTER TABLE `gaji` MODIFY `id_gaji` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT untuk tabel `pegawai` -- ALTER TABLE `pegawai` MODIFY `id_pegawai` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `pegawai` -- ALTER TABLE `pegawai` ADD CONSTRAINT `pegawai_ibfk_1` FOREIGN KEY (`jabatan_id`) REFERENCES `jabatan` (`id_jabatan`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
5c496e771bfe8e19b9643e449016f56e9a57c4dd
SQL
cha63506/arc-124
/arc.sql
UTF-8
629
3.0625
3
[]
no_license
-- -- Database: `arc` -- -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `auth_email` varchar(75) NOT NULL, `auth_passw` varchar(40) NOT NULL, `auth_creds` varchar(255) DEFAULT NULL, `auth_perms` varchar(255) DEFAULT NULL, `auth_atmpt` int(3) unsigned NOT NULL DEFAULT '0', `auth_block` int(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `auth_email` (`auth_email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='System Authentication Table' AUTO_INCREMENT=1 ;
true
d70155a4fdb75309726d18e55a2ba0b7f02104b2
SQL
andyawe/UAS
/makanan.sql
UTF-8
4,321
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 09, 2019 at 12:40 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `makanan` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_kategori` -- CREATE TABLE `tb_kategori` ( `id_kategori` int(11) NOT NULL, `nama_kategori` varchar(40) NOT NULL, `foto_kategori` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_kategori` -- INSERT INTO `tb_kategori` (`id_kategori`, `nama_kategori`, `foto_kategori`) VALUES (1, 'Aneka Nasi', 'nasi.jpg'), (2, 'Aneka Ayam & Bebek', 'ayam.jpg'), (3, 'Minuman', 'minuman.jpg'), (4, 'Fastfood', 'fastfood.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `tb_makanan` -- CREATE TABLE `tb_makanan` ( `id_makanan` int(11) NOT NULL, `id_user` int(11) NOT NULL, `id_kategori` int(11) NOT NULL, `nama_makanan` varchar(30) NOT NULL, `desc_makanan` varchar(120) NOT NULL, `foto_makanan` varchar(30) NOT NULL, `insert_time` varchar(90) NOT NULL, `view` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tb_user` -- CREATE TABLE `tb_user` ( `id_user` int(11) NOT NULL, `nama_user` varchar(30) NOT NULL, `alamat` varchar(50) NOT NULL, `jenkel` varchar(30) NOT NULL, `no_telp` varchar(15) NOT NULL, `username` varchar(130) NOT NULL, `password` varchar(130) NOT NULL, `level` int(2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_user` -- INSERT INTO `tb_user` (`id_user`, `nama_user`, `alamat`, `jenkel`, `no_telp`, `username`, `password`, `level`) VALUES (1, 'Firdaus', 'Jl.ternate', 'L', '2147483647', 'admin', '123456', 1), (2, 'Firdaus', 'Jl. loremipsum', 'L', '2147483647', 'admin2', 'e10adc3949ba59abbe56e057f20f883e', 1), (3, 'Firdaus', 'Jl. loremipsum', 'L', '2147483647', 'admin3', 'e10adc3949ba59abbe56e057f20f883e', 1), (4, 'Firdaus', 'Jl. loremipsum', 'Laki-laki', '2147483647', 'admin4', 'e10adc3949ba59abbe56e057f20f883e', 1), (5, 'Tes', 'alamat tes', 'jenkel tes', '29313', 'usertes', '123', 1), (6, 'Firdaus', 'Jl. loremipsum', 'Laki-laki', '2147483647', 'admin5', 'e10adc3949ba59abbe56e057f20f883e', 1), (7, 'Firdaus', 'Jl. loremipsum', 'Laki-laki', '2147483647', 'admin6', 'e10adc3949ba59abbe56e057f20f883e', 0), (8, 'Firdaus', 'Jl. lalsdlasdlasdlasd', 'Laki-laki', '8975231', 'admin7', 'e10adc3949ba59abbe56e057f20f883e', 0), (9, 'Firdaus', 'Jl. loremipsum', 'Laki-laki', '2147483647', 'admin8', 'e10adc3949ba59abbe56e057f20f883e', 1), (10, 'Firdaus 22', 'Jl. lalsdlasdlasdlasd 2', 'P', '0896474768582 ', 'admin9', 'e10adc3949ba59abbe56e057f20f883e', 1), (11, 'Firdaus', 'Jl. tmansan', 'L', '102389123', 'admin1', 'e10adc3949ba59abbe56e057f20f883e', 1), (12, 'Firdaus 2 ', 'Jl. lalsdlasdlasdlasd', 'L', '12345678901', 'admin0', 'e10adc3949ba59abbe56e057f20f883e', 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `tb_kategori` -- ALTER TABLE `tb_kategori` ADD PRIMARY KEY (`id_kategori`); -- -- Indexes for table `tb_makanan` -- ALTER TABLE `tb_makanan` ADD PRIMARY KEY (`id_makanan`); -- -- Indexes for table `tb_user` -- ALTER TABLE `tb_user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tb_kategori` -- ALTER TABLE `tb_kategori` MODIFY `id_kategori` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tb_makanan` -- ALTER TABLE `tb_makanan` MODIFY `id_makanan` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tb_user` -- ALTER TABLE `tb_user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
dc7e0a52897c62d896d48547faa02a224b7f75a4
SQL
AnastasiaPetrikevich/.NETMentoringD1
/03. Basic SQL/Northwind/Northwind/Task 2/Task2.1.sql
WINDOWS-1251
1,251
4.25
4
[]
no_license
---Task 2.1--- --1-- -- Order Details . -- 'Totals'. SELECT SUM(Quantity * UnitPrice * ( 1 - Discount )) AS Totals FROM [Order Details]; --2-- -- Orders , (.. ShippedDate ). -- COUNT. WHERE GROUP. SELECT COUNT(*)-COUNT(ShippedDate) AS Totals FROM Orders --3-- -- Orders (CustomerID), . -- COUNT WHERE GROUP. SELECT DISTINCT COUNT(CustomerID) AS Totals FROM Orders
true
6b26705dca04e51517195af70649724034f4abdf
SQL
nikku-b/Bellabeat_Case_Study
/averagecaloriesburnedpertimeofday.sql
UTF-8
1,681
4.53125
5
[]
no_license
/* I started my analysis by setting the time of days and looking at average calories burned, average steps, and average intensity level for the time of days. I found that most average calories burned were burned in the evening, closely followed by the afternoon. The least calories were burned at night. The highest average steps were in the afternoon, closely followed by the evening. The lowest average steps were at night. The average intensity of activity was highest in the evening, followed by the afternoon. The lowest average intensity was at night. */ with hourlycaloriesstepsintensitiesmerged AS (SELECT c.id, c.date, c.time, c.calories, s.step_total, i.Total_Intensity FROM hourlycaloriesmerged c INNER JOIN hourlystepsmerged s ON c.id=s.id AND c.date=s.date AND c.time=s.time INNER JOIN hourlyintensitiesmerged i ON c.id=i.id AND c.date=i.date AND c.time=i.time), timeday as (SELECT id, date, time, CASE WHEN time BETWEEN '06:00:00' AND '11:59:00' THEN 'morning' WHEN time BETWEEN '12:00:00' AND '17:59:00' THEN 'afternoon' WHEN time BETWEEN '18:00:00' AND '20:59:00' THEN 'evening' WHEN time BETWEEN '21:00:00' AND '23:59:00' THEN 'night' WHEN time BETWEEN '00:00:00' AND '05:59:00' THEN 'night' END AS Times_Of_Day, calories, step_total, total_intensity FROM hourlycaloriesstepsintensitiesmerged) SELECT Times_Of_Day, round(AVG(calories), 2) AS Average_Calories_Burned, round(AVG(step_total),2) AS Average_Step_Total, round(AVG(total_intensity),2) AS Average_Total_Intensity FROM timeday GROUP BY Times_Of_Day ORDER BY Average_Calories_Burned DESC
true
524d00febd6894f2102aecc0bef699117b688a98
SQL
bellmit/flexdb
/2.HOST/1.View/vw_afln_info_log.sql
UTF-8
1,844
2.9375
3
[]
no_license
create or replace force view vw_afln_info_log as select cf.custodycd, af.acctno, ln.actype lntype, max(case when ln.rrtype = 'B' then cspks_cfproc.fn_getavlcflimit(ln.custbank, af.custid, 'DFMR') else 0 end) banklimit, sum(decode(ftype,'DF',1,0)*(prinnml+prinovd+intnmlacr+intdue+intovdacr+intnmlovd+feeintnmlacr+feeintdue+feeintovdacr+feeintnmlovd)) dfamt, sum(decode(ftype,'DF',1,0)*(prinnml+prinovd)) dfprinamt, sum(decode(ftype,'DF',1,0)*(intnmlacr+intdue+intovdacr+intnmlovd+feeintnmlacr+feeintdue+feeintovdacr+feeintnmlovd)) dfintamt, sum(decode(ftype,'AF',1,0)*(prinnml+prinovd+intnmlacr+intdue+intovdacr+intnmlovd+feeintnmlacr+feeintdue+feeintovdacr+feeintnmlovd)) mramt, sum(decode(ftype,'AF',1,0)*(prinnml+prinovd)) mrprinamt, sum(decode(ftype,'AF',1,0)*(intnmlacr+intdue+intovdacr+intnmlovd+feeintnmlacr+feeintdue+feeintovdacr+feeintnmlovd)) mrintamt, sum(decode(ftype,'AF',1,0)*decode(lnt.chksysctrl,'Y',1,0)*(prinnml+prinovd+intnmlacr+intdue+intovdacr+intnmlovd+feeintnmlacr+feeintdue+feeintovdacr+feeintnmlovd)) mr74amt, sum(decode(ftype,'AF',1,0)*decode(lnt.chksysctrl,'Y',1,0)*(prinnml+prinovd)) mr74prinamt, sum(decode(ftype,'AF',1,0)*decode(lnt.chksysctrl,'Y',1,0)*(intnmlacr+intdue+intovdacr+intnmlovd+feeintnmlacr+feeintdue+feeintovdacr+feeintnmlovd)) mr74intamt, sum(decode(ftype,'AF',1,0)*(oprinnml+oprinovd+ointnmlacr+ointdue+ointovdacr+ointnmlovd)) t0amt, max(af.mrcrlimitmax) mrcrlimitmax, greatest(max(af.mrcrlimitmax) - sum(decode(ftype,'DF',1,0)*(prinnml+prinovd)) - sum(decode(ftype,'AF',1,0)*(prinnml+prinovd+intnmlacr+intdue+intovdacr+intnmlovd+feeintnmlacr+feeintdue+feeintovdacr+feeintnmlovd)) ,0) mrcrlimitremain from lnmast ln, lntype lnt, afmast af, cfmast cf where ln.actype = lnt.actype and ln.trfacctno = af.acctno and af.custid = cf.custid group by cf.custodycd, af.acctno, ln.actype;
true
8df793cda6655a0f9367fefd84769e50e40d1686
SQL
nbrahman/HackerRank
/06 SQL/05 Advanced Join/Interviews_MySQL.sql
UTF-8
868
4.125
4
[]
no_license
select co.contest_id, co.hacker_id, co.name, sum(ss.sts), sum(ss.stas), sum(vs.stv), sum(vs.stuv) from contests co, colleges cl, challenges ch, (select ch2.challenge_id, sum(vs2.total_views) stv, sum(vs2.total_unique_views) stuv from challenges ch2 left join view_stats vs2 on ch2.challenge_id = vs2.challenge_id group by ch2.challenge_id) vs, (select ch2.challenge_id, sum(ss2.total_submissions) sts, sum(ss2.total_accepted_submissions) stas from challenges ch2 left join submission_stats ss2 on ch2.challenge_id = ss2.challenge_id group by ch2.challenge_id) ss where co.contest_id = cl.contest_id and cl.college_id = ch.college_id and vs.challenge_id = ch.challenge_id and ss.challenge_id = ch.challenge_id group by co.contest_id, co.hacker_id, co.name having sum(ss.sts) + sum(ss.stas) + sum(vs.stv) + sum(vs.stuv) != 0 order by co.contest_id
true
f54236b959f98ee101c83b4d91e7e71b9aac0ac2
SQL
Giannandrea-Vicidomini/DataBase_Project
/SQL_scripts/create_tables(2).sql
UTF-8
2,774
3.75
4
[]
no_license
/********************************************************************* If you didn't create the db yet run reset_db(1). This file generates all the tables, make sure the db is actually empty if it isn't run reset_db(1) **********************************************************************/ use steamDB; create table Gioco ( ID_Gioco char(5) primary key, Titolo varchar(20) not null, Descrizione varchar(200) not null, DataRilascio date not null ); create table Account ( Nickname varchar(20) primary key, Email varchar(30) not null, Password varchar(20) not null, Nazione varchar(20) not null, Regione varchar(20) not null, Città varchar(20) not null, Credito decimal(6,2) not null ); create table Dipendente ( ID_Dipendente char(5) primary key, Nome varchar(15) not null, Cognome varchar(15) not null, Sesso char(1) not null ); create table Azienda ( PartitaIVA char(11) primary key, Nome varchar(20) not null, Tipo varchar(5) not null, Luogo varchar(10) not null ); create table Genere( ID_Gioco varchar(5) not null, NomeGenere varchar(25) not null, foreign key (ID_Gioco) references Gioco(ID_Gioco) on update cascade on delete cascade, primary key(ID_Gioco,NomeGenere) ); create table Assistente( ID_Assistente char(5) primary key, Email varchar(30) not null, foreign key (ID_Assistente) references Dipendente(ID_Dipendente) on update cascade on delete cascade ); create table Produzione ( PIVA char(11), IDG char(5), foreign key (PIVA) references Azienda(PartitaIVA) on update cascade on delete cascade, foreign key (IDG) references Gioco(ID_Gioco) on update cascade on delete cascade, primary key(PIVA, IDG) ); create table Acquisto ( IDG char(5), Username varchar(20), DataAcquisto date not null, Prezzo decimal(5,2), foreign key (IDG) references Gioco(ID_Gioco) on update cascade on delete cascade, foreign key (Username) references Account(Nickname) on update cascade on delete cascade, primary key (IDG, Username) ); create table Supporto ( Assistente char(5), Account varchar(20), DataSupporto date, foreign key (Assistente) references Assistente(ID_Assistente) on update cascade on delete cascade, foreign key (Account) references Account(Nickname) on update cascade on delete cascade, primary key (Assistente, Account, DataSupporto) ); create table Gestione ( Dipendente char(5), Gioco char(5), foreign key (Dipendente) references Dipendente(ID_Dipendente) on update cascade on delete cascade, foreign key (Gioco) references Gioco(ID_Gioco) on update cascade on delete cascade, primary key(Dipendente, Gioco) );
true
c818fb250ebc5167215d74153d5791ecf650f296
SQL
microsoft/AzureSynapseScriptsAndAccelerators
/Scripts/Dedicated SQL pool/WLM/Get Workload Group Stats.sql
UTF-8
978
2.765625
3
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
/*************************************************************************************************** Create Date: 08-20-2020 Author: Casey Karst MSFT Description: This query runs against the user database and returns all information regarding WorkloadGroups provisioned on the database. **************************************************************************************************** SUMMARY OF CHANGES Date(yyyy-mm-dd) Author Comments ------------------- ------------------- ------------------------------------------------------------ 08-20-2020 Casey Karst Added ***************************************************************************************************/ select effective_min_percentage_resource, effective_Cap_Percentage_resource, effective_request_min_resource_grant_percent, effective_request_max_resource_grant_percent, * from sys.dm_workload_management_workload_groups_stats order by group_id;
true
5e39f190569818d4f00ccadd25a182162116591c
SQL
Jenny6199/Repo_Diving_center
/Diving_center_1_Create_tables.sql
UTF-8
9,088
3.75
4
[]
no_license
-- ПРОЕКТ: Дайвинг-центр -- Максим Сапунов Jenny6199@yandex.ru -- Файл №1 -- СОЗДАНИЕ ТАБЛИЦ. CREATE DATABASE IF NOT EXISTS diving_center; USE diving_center; -- ТАБЛИЦА №1 Члены клуба. DROP TABLE IF EXISTS members; CREATE TABLE IF NOT EXISTS members ( id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT COMMENT 'Идентификатор члена клуба', first_name VARCHAR(255) NOT NULL COMMENT 'Имя члена клуба', last_name VARCHAR(255) NOT NULL COMMENT 'Фамилия члена клуба', email VARCHAR(255) UNIQUE NOT NULL COMMENT 'E-mail адресс', phone VARCHAR(255) UNIQUE NOT NULL COMMENT 'Телефон пользователя', created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Время создания учетной записи', updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Время обновления учетной записи' ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Члены клуба'; -- ТАБЛИЦА № 2 Адресные данные членов клуба DROP TABLE IF EXISTS adress_of_members; CREATE TABLE adress_of_members ( user_id INT UNSIGNED PRIMARY KEY NOT NULL COMMENT 'Ссылка на идентификатор члена клуба', country VARCHAR(255) DEFAULT 'Hidden' COMMENT 'Страна', city VARCHAR(255) DEFAULT 'Hidden' COMMENT 'Город', street VARCHAR(255) DEFAULT 'Hidden' COMMENT 'Улица', house_number INT UNSIGNED DEFAULT NULL COMMENT 'Номер дома', apart INT UNSIGNED DEFAULT NULL COMMENT 'Номер квартиры', po_index INT UNSIGNED DEFAULT NULL COMMENT 'Почтовый индекс', updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Время обновления сведений' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Адреса членов клуба'; -- ТАБЛИЦА № 3 Квалификация членов клуба DROP TABLE IF EXISTS qualification_of_members; CREATE TABLE IF NOT EXISTS qualification_of_members ( id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT NOT NULL, user_id INT UNSIGNED NOT NULL COMMENT 'Идентификатор пользователя', step_of_qualification INT UNSIGNED DEFAULT NULL COMMENT 'Идентификатор уровня квалификации', instructor_id INT UNSIGNED NOT NULL COMMENT 'Идентификатор инструктора выдавшего сертификат', created_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Дата присвоения квалификации', site_id INT UNSIGNED NOT NULL COMMENT 'Идентификатор филиала, где была присвоена квалификация' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Сведения о квалификации членов клуба'; -- ТАБЛИЦА № 4 Таблица квалификации (id, разряды квалификации) CREATE TABLE IF NOT EXISTS levels_of_qualification ( qualification_id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT NOT NULL COMMENT 'Идентификатор уровня квалификации', type_of_qualification VARCHAR(255) NOT NULL COMMENT 'Тип квалификации', name_of_qualification VARCHAR(255) NOT NULL COMMENT 'Название квалификации', level_of_qualification INT UNSIGNED NOT NULL DEFAULT 1 COMMENT 'Уровень квалификации', count_of_dives INT UNSIGNED NOT NULL DEFAULT 10 COMMENT 'Минимальное количество погружений для достижения следующего уровня квалификации' ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Таблица квалификаций'; -- ТАБЛИЦА № 5 Логбук погружений DROP TABLE IF EXISTS log_book; CREATE TABLE log_book ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Идентификатор записи погружения', user_id INT UNSIGNED NOT NULL COMMENT 'Идентификатор дайвера', partner_id INT UNSIGNED NOT NULL COMMENT 'Идентификатор напарника', site_id INT UNSIGNED NOT NULL COMMENT 'Идентификатор дайв-сайта', dive_date DATETIME COMMENT 'Дата погружения', dive_deep INT COMMENT 'Глубина погружения', dive_time TIME NOT NULL DEFAULT 0 COMMENT 'Длительность погружения', created_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'дата создания и/или обновления записи' ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Логбук погружений'; -- ТАБЛИЦА № 6 Участие в клубных поездках DROP TABLE IF EXISTS travel_log; CREATE TABLE travel_log ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Идентификатор записи', user_id INT UNSIGNED NOT NULL COMMENT 'Идентификатор пользователя', travel_date DATE NOT NULL COMMENT 'Год поездки', country VARCHAR(255) DEFAULT 'Not indicated' COMMENT 'Направление', created_at DATETIME DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Таблица участия в клубных поездках'; -- ТАБЛИЦА № 7 Отзывы участников клуба DROP TABLE IF EXISTS messages; CREATE TABLE messages ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, from_user_id INT UNSIGNED NOT NULL, body VARCHAR(255) DEFAULT '---', created_at DATETIME DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Таблица отзывов'; -- ТАБЛИЦА № 8 Клубные поездки DROP TABLE IF EXISTS club_travels_list; CREATE TABLE IF NOT EXISTS club_travels_list ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Идентификатор записи', start_date DATETIME DEFAULT NULL COMMENT 'Дата начала поездки', duration INT UNSIGNED COMMENT 'Продолжительность поездки', specification VARCHAR(255) COMMENT 'Спецификация поездки', cost INT UNSIGNED DEFAULT NULL COMMENT 'Стоимость поездки', travel_status INT UNSIGNED DEFAULT NULL COMMENT 'Статус поездки', updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Дата обновления' ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Таблица клубных поездок'; -- ТАБЛИЦА № 9 Таблица статусов клубных поездок. DROP TABLE IF EXISTS status_of_travel; CREATE TABLE IF NOT EXISTS status_of_travel ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Идентификатор статуса поездки', status ENUM ('завершено', 'проводится', 'ожидается', 'отменено') ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Таблица статусов клубных поездок'; -- ТАБЛИЦА № 10 Заявки пользователей на участие в поездках. DROP TABLE IF EXISTS travel_requests; CREATE TABLE IF NOT EXISTS travel_requests ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Идентификатор заявки', user_id INT UNSIGNED NOT NULL COMMENT 'Идентификатор пользователя', payment INT UNSIGNED DEFAULT 0 COMMENT 'Статус оплаты', created_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Таблица заявок'; -- ТАБЛИЦА № 11 Координаты дайв-сайтов DROP TABLE IF EXISTS dive_sites; CREATE TABLE dive_sites ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Идентификатор сайта', latitude FLOAT COMMENT 'Координаты - широта', longitude FLOAT COMMENT 'Координаты - долгота', path_remoteness INT DEFAULT NULL COMMENT 'Удаленность от транспортных путей' ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Координаты дайв-сайтов'; -- Таблица № 12 Прокатное снаряжение. -- в разработке. -- Таблица № 13 Адреса филиалов. -- в разработке. -- Таблица № 14 Staff. -- в разработке.
true
5ee0a3001c136b43e156603e0cfb98d3e679f7ab
SQL
hsuthar1/w205_2017_summer
/exercise_1/investigations/best_hospitals/best_hospitals.sql
UTF-8
192
3.046875
3
[]
no_license
drop table best_hosp; create table best_hosp as select hospital_name, avg(score) as avg_score from te_care group by hospital_name ; select * from best_hosp order by avg_score desc limit 10 ;
true
6474e5bd4dec4f3bb7cba934e0420bd56d6bde85
SQL
JinmingChen12/InformationArchitecturesFinal
/Codes/Dimension tables.sql
UTF-8
1,530
3.5
4
[]
no_license
use master_dw; drop table if exists `Arrest_Dim`; create table `Arrest_Dim`( `Record ID` int primary key, `Arrest ID` varchar(50), `Arrest_Date` varchar(50) ); drop table if exists `Crime_Dim`; create table `Crime_Dim`( `Record ID` int primary key, `Law Code Category Description` varchar(30), `Offense Description` varchar(30), `PD Code Description` varchar(80), `Bias Motive Description` varchar(30), `Offense Category` varchar(60), `Other Motive Description` varchar(30) ); drop table if exists `Date_Dim`; create table `Date_Dim`( `Record Create Date` varchar(60), `Complaint Year Number` int, `Month Number` int, `Arrest Date` varchar(50), key `fk_01`(`Arrest Date`), key `fk_02`(`Record Create Date`) ); drop table if exists `Location_Dim`; create table `Location_Dim`( `Patrol Borough Name` varchar(50), `County` varchar(25) ); drop table if exists `fact_Dim`; create table `fact_Dim`( `Record ID` int auto_increment, `Record Create Date` varchar(60), `Arrest ID` varchar(30), `Arrest Date` varchar(50), `County` varchar(25), primary key(`Record ID`), unique key(`Record Create Date`, `Arrest Date`,`County`), constraint `fk_Arrest_Dim_fact` foreign key (`Record ID`) references `Arrest_Dim` (`Record ID`), constraint `fk_Crime_Dim_fact` foreign key (`Record ID`) references `Crime_Dim` (`Record ID`), constraint `fk_Date_Dim_fact_01` foreign key (`Record Create Date`) references `Date_Dim` (`Record Create Date`), constraint `fk_Date_Dim_fact_02` foreign key (`Arrest Date`) references `Date_Dim` (`Arrest Date`) )
true
5567b37258a7329b5e18ad7f0bd7aa27b0395297
SQL
amarlokman110/Data-Scientist-with-Python-datacamp-
/13 Joining data in SQL/04-subqueries/13-final-challenge(3).sql
UTF-8
1,428
4.4375
4
[]
no_license
/* Welcome to the last challenge problem. By now you're a query warrior! Remember that these challenges are designed to take you to the limit to solidify your SQL knowledge! Take a deep breath and solve this step-by-step. You are now tasked with determining the top 10 capital cities in Europe and the Americas in terms of a calculated percentage using city_proper_pop and metroarea_pop in cities. After this exercise you are done with the course! If you enjoyed the material, feel free to send Chester a thank you via Twitter. . Do not use table aliasing in this exercise. */ /* Instructions Select the city name, country code, city proper population, and metro area population. Calculate the percentage of metro area population composed of city proper population for each city in cities, aliased as city_perc. Focus only on capital cities in Europe and the Americas in a subquery. Make sure to exclude records with missing data on metro area population. Order the result by city_perc descending. Then determine the top 10 capital cities in Europe and the Americas in terms of this city_perc percentage. */ SELECT name, country_code, city_proper_pop, metroarea_pop, city_proper_pop / metroarea_pop * 100 AS city_perc FROM cities WHERE name IN (SELECT capital FROM countries WHERE (continent = 'Europe' OR continent LIKE '%America')) AND metroarea_pop IS NOT NULL ORDER BY city_perc DESC LIMIT 10;
true
c2ff35fcbd0e8250be8a364519e67a2f0c79a0ad
SQL
Krlees/zhihuikongtiao
/hotel.sql
UTF-8
439,049
3.15625
3
[]
no_license
git/* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50717 Source Host : localhost:3306 Source Database : hotel Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2017-05-09 15:18:37 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for device -- ---------------------------- DROP TABLE IF EXISTS `device`; CREATE TABLE `device` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `room_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '房间id', `did` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备号', `mac` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '物理网卡地址', `product_key` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, `passcode` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL, `type` varchar(18) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `name` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '设备名称', `data` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '硬件设备信息', `created_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `d_mac_device` (`mac`,`did`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of device -- ---------------------------- INSERT INTO `device` VALUES ('15', '1', 'ssCG695Cm3SReWoBehxaHi', '60019409aa83', 'b67bc47a0b3144cd8aeb8d76999e945f', 'CNPXCSVUCT', null, '空调', '{\"ws_port\":8080,\"port_s\":8883,\"is_disabled\":false,\"mac\":\"60019409aa83\",\"dev_alias\":\"\",\"is_online\":false,\"wss_port\":8880,\"remark\":\"\",\"did\":\"ssCG695Cm3SReWoBehxaHi\",\"host\":\"sandbox.gizwits.com\",\"product_key\":\"b67bc47a0b3144cd8aeb8d76999e945f\",\"port\":1883,\"role\":\"normal\",\"passcode\":\"CNPXCSVUCT\",\"type\":\"normal\"}', '2017-05-08 16:16:51', '2017-05-08 16:16:51'); -- ---------------------------- -- Table structure for device_air_adjust_log -- ---------------------------- DROP TABLE IF EXISTS `device_air_adjust_log`; CREATE TABLE `device_air_adjust_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `device_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '设备id', `delay` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '延迟调整时间,单位(分)', `fan` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'low' COMMENT '风速调整 小low,中middle,大hign', `mode` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cool' COMMENT '功能模式, 冷cool,热hot', `t_nums` tinyint(2) unsigned NOT NULL DEFAULT '16' COMMENT '温度数', `h_nums` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '湿度调整数', `enable` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '空调开关 1开启 0关闭', `dry_enable` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否开启去湿功能 1开启,0关闭', `use_time` varchar(150) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '使用时间段', `created_at` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of device_air_adjust_log -- ---------------------------- -- ---------------------------- -- Table structure for device_air_use_log -- ---------------------------- DROP TABLE IF EXISTS `device_air_use_log`; CREATE TABLE `device_air_use_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `device_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '设备id', `use_energy` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '能耗使用', `no_use_energy` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '未使用能耗', `all_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '总使用时长', `date` date NOT NULL COMMENT '创建日期', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='空调能耗记录'; -- ---------------------------- -- Records of device_air_use_log -- ---------------------------- INSERT INTO `device_air_use_log` VALUES ('1', '15', '0', '0', '0', '2017-05-08'); -- ---------------------------- -- Table structure for district -- ---------------------------- DROP TABLE IF EXISTS `district`; CREATE TABLE `district` ( `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '' COMMENT '地区名', `level` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '级别', `upid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '上级ID', `sort` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '显示顺序', PRIMARY KEY (`id`), KEY `INDEX` (`upid`,`sort`) ) ENGINE=InnoDB AUTO_INCREMENT=7819 DEFAULT CHARSET=utf8 COMMENT='地区表'; -- ---------------------------- -- Records of district -- ---------------------------- INSERT INTO `district` VALUES ('1', '北京', '1', '0', '0'); INSERT INTO `district` VALUES ('2', '天津', '1', '0', '0'); INSERT INTO `district` VALUES ('3', '河北', '1', '0', '0'); INSERT INTO `district` VALUES ('4', '山西', '1', '0', '0'); INSERT INTO `district` VALUES ('5', '内蒙古', '1', '0', '0'); INSERT INTO `district` VALUES ('6', '辽宁', '1', '0', '0'); INSERT INTO `district` VALUES ('7', '吉林', '1', '0', '0'); INSERT INTO `district` VALUES ('8', '黑龙江', '1', '0', '0'); INSERT INTO `district` VALUES ('9', '上海', '1', '0', '0'); INSERT INTO `district` VALUES ('10', '江苏', '1', '0', '0'); INSERT INTO `district` VALUES ('11', '浙江', '1', '0', '0'); INSERT INTO `district` VALUES ('12', '安徽', '1', '0', '0'); INSERT INTO `district` VALUES ('13', '福建', '1', '0', '0'); INSERT INTO `district` VALUES ('14', '江西', '1', '0', '0'); INSERT INTO `district` VALUES ('15', '山东', '1', '0', '0'); INSERT INTO `district` VALUES ('16', '河南', '1', '0', '0'); INSERT INTO `district` VALUES ('17', '湖北', '1', '0', '0'); INSERT INTO `district` VALUES ('18', '湖南', '1', '0', '0'); INSERT INTO `district` VALUES ('19', '广东', '1', '0', '0'); INSERT INTO `district` VALUES ('20', '广西', '1', '0', '0'); INSERT INTO `district` VALUES ('21', '海南', '1', '0', '0'); INSERT INTO `district` VALUES ('22', '重庆', '1', '0', '0'); INSERT INTO `district` VALUES ('23', '四川', '1', '0', '0'); INSERT INTO `district` VALUES ('24', '贵州', '1', '0', '0'); INSERT INTO `district` VALUES ('25', '云南', '1', '0', '0'); INSERT INTO `district` VALUES ('26', '西藏', '1', '0', '0'); INSERT INTO `district` VALUES ('27', '陕西', '1', '0', '0'); INSERT INTO `district` VALUES ('28', '甘肃', '1', '0', '0'); INSERT INTO `district` VALUES ('29', '青海', '1', '0', '0'); INSERT INTO `district` VALUES ('30', '宁夏', '1', '0', '0'); INSERT INTO `district` VALUES ('31', '新疆', '1', '0', '0'); INSERT INTO `district` VALUES ('32', '台湾', '1', '0', '0'); INSERT INTO `district` VALUES ('33', '香港', '1', '0', '0'); INSERT INTO `district` VALUES ('34', '澳门', '1', '0', '0'); INSERT INTO `district` VALUES ('35', '海外', '1', '0', '0'); INSERT INTO `district` VALUES ('36', '其他', '1', '0', '0'); INSERT INTO `district` VALUES ('37', '东城区', '3', '5025', '0'); INSERT INTO `district` VALUES ('38', '西城区', '3', '5025', '0'); INSERT INTO `district` VALUES ('39', '崇文区', '3', '5025', '0'); INSERT INTO `district` VALUES ('40', '宣武区', '3', '5025', '0'); INSERT INTO `district` VALUES ('41', '朝阳区', '3', '5025', '0'); INSERT INTO `district` VALUES ('42', '丰台区', '3', '5025', '0'); INSERT INTO `district` VALUES ('43', '石景山区', '3', '5025', '0'); INSERT INTO `district` VALUES ('44', '海淀区', '3', '5025', '0'); INSERT INTO `district` VALUES ('45', '门头沟区', '3', '5025', '0'); INSERT INTO `district` VALUES ('46', '房山区', '3', '5025', '0'); INSERT INTO `district` VALUES ('47', '通州区', '3', '5025', '0'); INSERT INTO `district` VALUES ('48', '顺义区', '3', '5025', '0'); INSERT INTO `district` VALUES ('49', '昌平区', '3', '5025', '0'); INSERT INTO `district` VALUES ('50', '大兴区', '3', '5025', '0'); INSERT INTO `district` VALUES ('51', '怀柔区', '3', '5025', '0'); INSERT INTO `district` VALUES ('52', '平谷区', '3', '5025', '0'); INSERT INTO `district` VALUES ('53', '密云县', '3', '5025', '0'); INSERT INTO `district` VALUES ('54', '延庆县', '3', '5025', '0'); INSERT INTO `district` VALUES ('55', '和平区', '3', '5026', '0'); INSERT INTO `district` VALUES ('56', '河东区', '3', '5026', '0'); INSERT INTO `district` VALUES ('57', '河西区', '3', '5026', '0'); INSERT INTO `district` VALUES ('58', '南开区', '3', '5026', '0'); INSERT INTO `district` VALUES ('59', '河北区', '3', '5026', '0'); INSERT INTO `district` VALUES ('60', '红桥区', '3', '5026', '0'); INSERT INTO `district` VALUES ('61', '塘沽区', '3', '5026', '0'); INSERT INTO `district` VALUES ('62', '汉沽区', '3', '5026', '0'); INSERT INTO `district` VALUES ('63', '大港区', '3', '5026', '0'); INSERT INTO `district` VALUES ('64', '东丽区', '3', '5026', '0'); INSERT INTO `district` VALUES ('65', '西青区', '3', '5026', '0'); INSERT INTO `district` VALUES ('66', '津南区', '3', '5026', '0'); INSERT INTO `district` VALUES ('67', '北辰区', '3', '5026', '0'); INSERT INTO `district` VALUES ('68', '武清区', '3', '5026', '0'); INSERT INTO `district` VALUES ('69', '宝坻区', '3', '5026', '0'); INSERT INTO `district` VALUES ('70', '宁河县', '3', '5026', '0'); INSERT INTO `district` VALUES ('71', '静海县', '3', '5026', '0'); INSERT INTO `district` VALUES ('72', '蓟县', '3', '5026', '0'); INSERT INTO `district` VALUES ('73', '石家庄市', '2', '3', '0'); INSERT INTO `district` VALUES ('74', '唐山市', '2', '3', '0'); INSERT INTO `district` VALUES ('75', '秦皇岛市', '2', '3', '0'); INSERT INTO `district` VALUES ('76', '邯郸市', '2', '3', '0'); INSERT INTO `district` VALUES ('77', '邢台市', '2', '3', '0'); INSERT INTO `district` VALUES ('78', '保定市', '2', '3', '0'); INSERT INTO `district` VALUES ('79', '张家口市', '2', '3', '0'); INSERT INTO `district` VALUES ('80', '承德市', '2', '3', '0'); INSERT INTO `district` VALUES ('81', '衡水市', '2', '3', '0'); INSERT INTO `district` VALUES ('82', '廊坊市', '2', '3', '0'); INSERT INTO `district` VALUES ('83', '沧州市', '2', '3', '0'); INSERT INTO `district` VALUES ('84', '太原市', '2', '4', '0'); INSERT INTO `district` VALUES ('85', '大同市', '2', '4', '0'); INSERT INTO `district` VALUES ('86', '阳泉市', '2', '4', '0'); INSERT INTO `district` VALUES ('87', '长治市', '2', '4', '0'); INSERT INTO `district` VALUES ('88', '晋城市', '2', '4', '0'); INSERT INTO `district` VALUES ('89', '朔州市', '2', '4', '0'); INSERT INTO `district` VALUES ('90', '晋中市', '2', '4', '0'); INSERT INTO `district` VALUES ('91', '运城市', '2', '4', '0'); INSERT INTO `district` VALUES ('92', '忻州市', '2', '4', '0'); INSERT INTO `district` VALUES ('93', '临汾市', '2', '4', '0'); INSERT INTO `district` VALUES ('94', '吕梁市', '2', '4', '0'); INSERT INTO `district` VALUES ('95', '呼和浩特市', '2', '5', '0'); INSERT INTO `district` VALUES ('96', '包头市', '2', '5', '0'); INSERT INTO `district` VALUES ('97', '乌海市', '2', '5', '0'); INSERT INTO `district` VALUES ('98', '赤峰市', '2', '5', '0'); INSERT INTO `district` VALUES ('99', '通辽市', '2', '5', '0'); INSERT INTO `district` VALUES ('100', '鄂尔多斯市', '2', '5', '0'); INSERT INTO `district` VALUES ('101', '呼伦贝尔市', '2', '5', '0'); INSERT INTO `district` VALUES ('102', '巴彦淖尔市', '2', '5', '0'); INSERT INTO `district` VALUES ('103', '乌兰察布市', '2', '5', '0'); INSERT INTO `district` VALUES ('104', '兴安盟', '2', '5', '0'); INSERT INTO `district` VALUES ('105', '锡林郭勒盟', '2', '5', '0'); INSERT INTO `district` VALUES ('106', '阿拉善盟', '2', '5', '0'); INSERT INTO `district` VALUES ('107', '沈阳市', '2', '6', '0'); INSERT INTO `district` VALUES ('108', '大连市', '2', '6', '0'); INSERT INTO `district` VALUES ('109', '鞍山市', '2', '6', '0'); INSERT INTO `district` VALUES ('110', '抚顺市', '2', '6', '0'); INSERT INTO `district` VALUES ('111', '本溪市', '2', '6', '0'); INSERT INTO `district` VALUES ('112', '丹东市', '2', '6', '0'); INSERT INTO `district` VALUES ('113', '锦州市', '2', '6', '0'); INSERT INTO `district` VALUES ('114', '营口市', '2', '6', '0'); INSERT INTO `district` VALUES ('115', '阜新市', '2', '6', '0'); INSERT INTO `district` VALUES ('116', '辽阳市', '2', '6', '0'); INSERT INTO `district` VALUES ('117', '盘锦市', '2', '6', '0'); INSERT INTO `district` VALUES ('118', '铁岭市', '2', '6', '0'); INSERT INTO `district` VALUES ('119', '朝阳市', '2', '6', '0'); INSERT INTO `district` VALUES ('120', '葫芦岛市', '2', '6', '0'); INSERT INTO `district` VALUES ('121', '长春市', '2', '7', '0'); INSERT INTO `district` VALUES ('122', '吉林市', '2', '7', '0'); INSERT INTO `district` VALUES ('123', '四平市', '2', '7', '0'); INSERT INTO `district` VALUES ('124', '辽源市', '2', '7', '0'); INSERT INTO `district` VALUES ('125', '通化市', '2', '7', '0'); INSERT INTO `district` VALUES ('126', '白山市', '2', '7', '0'); INSERT INTO `district` VALUES ('127', '松原市', '2', '7', '0'); INSERT INTO `district` VALUES ('128', '白城市', '2', '7', '0'); INSERT INTO `district` VALUES ('129', '延边朝鲜族自治州', '2', '7', '0'); INSERT INTO `district` VALUES ('130', '哈尔滨市', '2', '8', '0'); INSERT INTO `district` VALUES ('131', '齐齐哈尔市', '2', '8', '0'); INSERT INTO `district` VALUES ('132', '鸡西市', '2', '8', '0'); INSERT INTO `district` VALUES ('133', '鹤岗市', '2', '8', '0'); INSERT INTO `district` VALUES ('134', '双鸭山市', '2', '8', '0'); INSERT INTO `district` VALUES ('135', '大庆市', '2', '8', '0'); INSERT INTO `district` VALUES ('136', '伊春市', '2', '8', '0'); INSERT INTO `district` VALUES ('137', '佳木斯市', '2', '8', '0'); INSERT INTO `district` VALUES ('138', '七台河市', '2', '8', '0'); INSERT INTO `district` VALUES ('139', '牡丹江市', '2', '8', '0'); INSERT INTO `district` VALUES ('140', '黑河市', '2', '8', '0'); INSERT INTO `district` VALUES ('141', '绥化市', '2', '8', '0'); INSERT INTO `district` VALUES ('142', '大兴安岭地区', '2', '8', '0'); INSERT INTO `district` VALUES ('143', '黄浦区', '3', '5027', '0'); INSERT INTO `district` VALUES ('144', '卢湾区', '3', '5027', '0'); INSERT INTO `district` VALUES ('145', '徐汇区', '3', '5027', '0'); INSERT INTO `district` VALUES ('146', '长宁区', '3', '5027', '0'); INSERT INTO `district` VALUES ('147', '静安区', '3', '5027', '0'); INSERT INTO `district` VALUES ('148', '普陀区', '3', '5027', '0'); INSERT INTO `district` VALUES ('149', '闸北区', '3', '5027', '0'); INSERT INTO `district` VALUES ('150', '虹口区', '3', '5027', '0'); INSERT INTO `district` VALUES ('151', '杨浦区', '3', '5027', '0'); INSERT INTO `district` VALUES ('152', '闵行区', '3', '5027', '0'); INSERT INTO `district` VALUES ('153', '宝山区', '3', '5027', '0'); INSERT INTO `district` VALUES ('154', '嘉定区', '3', '5027', '0'); INSERT INTO `district` VALUES ('155', '浦东新区', '3', '5027', '0'); INSERT INTO `district` VALUES ('156', '金山区', '3', '5027', '0'); INSERT INTO `district` VALUES ('157', '松江区', '3', '5027', '0'); INSERT INTO `district` VALUES ('158', '青浦区', '3', '5027', '0'); INSERT INTO `district` VALUES ('159', '南汇区', '3', '5027', '0'); INSERT INTO `district` VALUES ('160', '奉贤区', '3', '5027', '0'); INSERT INTO `district` VALUES ('161', '崇明县', '3', '5027', '0'); INSERT INTO `district` VALUES ('162', '南京市', '2', '10', '0'); INSERT INTO `district` VALUES ('163', '无锡市', '2', '10', '0'); INSERT INTO `district` VALUES ('164', '徐州市', '2', '10', '0'); INSERT INTO `district` VALUES ('165', '常州市', '2', '10', '0'); INSERT INTO `district` VALUES ('166', '苏州市', '2', '10', '0'); INSERT INTO `district` VALUES ('167', '南通市', '2', '10', '0'); INSERT INTO `district` VALUES ('168', '连云港市', '2', '10', '0'); INSERT INTO `district` VALUES ('169', '淮安市', '2', '10', '0'); INSERT INTO `district` VALUES ('170', '盐城市', '2', '10', '0'); INSERT INTO `district` VALUES ('171', '扬州市', '2', '10', '0'); INSERT INTO `district` VALUES ('172', '镇江市', '2', '10', '0'); INSERT INTO `district` VALUES ('173', '泰州市', '2', '10', '0'); INSERT INTO `district` VALUES ('174', '宿迁市', '2', '10', '0'); INSERT INTO `district` VALUES ('175', '杭州市', '2', '11', '0'); INSERT INTO `district` VALUES ('176', '宁波市', '2', '11', '0'); INSERT INTO `district` VALUES ('177', '温州市', '2', '11', '0'); INSERT INTO `district` VALUES ('178', '嘉兴市', '2', '11', '0'); INSERT INTO `district` VALUES ('179', '湖州市', '2', '11', '0'); INSERT INTO `district` VALUES ('180', '绍兴市', '2', '11', '0'); INSERT INTO `district` VALUES ('181', '舟山市', '2', '11', '0'); INSERT INTO `district` VALUES ('182', '衢州市', '2', '11', '0'); INSERT INTO `district` VALUES ('183', '金华市', '2', '11', '0'); INSERT INTO `district` VALUES ('184', '台州市', '2', '11', '0'); INSERT INTO `district` VALUES ('185', '丽水市', '2', '11', '0'); INSERT INTO `district` VALUES ('186', '合肥市', '2', '12', '0'); INSERT INTO `district` VALUES ('187', '芜湖市', '2', '12', '0'); INSERT INTO `district` VALUES ('188', '蚌埠市', '2', '12', '0'); INSERT INTO `district` VALUES ('189', '淮南市', '2', '12', '0'); INSERT INTO `district` VALUES ('190', '马鞍山市', '2', '12', '0'); INSERT INTO `district` VALUES ('191', '淮北市', '2', '12', '0'); INSERT INTO `district` VALUES ('192', '铜陵市', '2', '12', '0'); INSERT INTO `district` VALUES ('193', '安庆市', '2', '12', '0'); INSERT INTO `district` VALUES ('194', '黄山市', '2', '12', '0'); INSERT INTO `district` VALUES ('195', '滁州市', '2', '12', '0'); INSERT INTO `district` VALUES ('196', '阜阳市', '2', '12', '0'); INSERT INTO `district` VALUES ('197', '宿州市', '2', '12', '0'); INSERT INTO `district` VALUES ('198', '巢湖市', '2', '12', '0'); INSERT INTO `district` VALUES ('199', '六安市', '2', '12', '0'); INSERT INTO `district` VALUES ('200', '亳州市', '2', '12', '0'); INSERT INTO `district` VALUES ('201', '池州市', '2', '12', '0'); INSERT INTO `district` VALUES ('202', '宣城市', '2', '12', '0'); INSERT INTO `district` VALUES ('203', '福州市', '2', '13', '0'); INSERT INTO `district` VALUES ('204', '厦门市', '2', '13', '0'); INSERT INTO `district` VALUES ('205', '莆田市', '2', '13', '0'); INSERT INTO `district` VALUES ('206', '三明市', '2', '13', '0'); INSERT INTO `district` VALUES ('207', '泉州市', '2', '13', '0'); INSERT INTO `district` VALUES ('208', '漳州市', '2', '13', '0'); INSERT INTO `district` VALUES ('209', '南平市', '2', '13', '0'); INSERT INTO `district` VALUES ('210', '龙岩市', '2', '13', '0'); INSERT INTO `district` VALUES ('211', '宁德市', '2', '13', '0'); INSERT INTO `district` VALUES ('212', '南昌市', '2', '14', '0'); INSERT INTO `district` VALUES ('213', '景德镇市', '2', '14', '0'); INSERT INTO `district` VALUES ('214', '萍乡市', '2', '14', '0'); INSERT INTO `district` VALUES ('215', '九江市', '2', '14', '0'); INSERT INTO `district` VALUES ('216', '新余市', '2', '14', '0'); INSERT INTO `district` VALUES ('217', '鹰潭市', '2', '14', '0'); INSERT INTO `district` VALUES ('218', '赣州市', '2', '14', '0'); INSERT INTO `district` VALUES ('219', '吉安市', '2', '14', '0'); INSERT INTO `district` VALUES ('220', '宜春市', '2', '14', '0'); INSERT INTO `district` VALUES ('221', '抚州市', '2', '14', '0'); INSERT INTO `district` VALUES ('222', '上饶市', '2', '14', '0'); INSERT INTO `district` VALUES ('223', '济南市', '2', '15', '0'); INSERT INTO `district` VALUES ('224', '青岛市', '2', '15', '0'); INSERT INTO `district` VALUES ('225', '淄博市', '2', '15', '0'); INSERT INTO `district` VALUES ('226', '枣庄市', '2', '15', '0'); INSERT INTO `district` VALUES ('227', '东营市', '2', '15', '0'); INSERT INTO `district` VALUES ('228', '烟台市', '2', '15', '0'); INSERT INTO `district` VALUES ('229', '潍坊市', '2', '15', '0'); INSERT INTO `district` VALUES ('230', '济宁市', '2', '15', '0'); INSERT INTO `district` VALUES ('231', '泰安市', '2', '15', '0'); INSERT INTO `district` VALUES ('232', '威海市', '2', '15', '0'); INSERT INTO `district` VALUES ('233', '日照市', '2', '15', '0'); INSERT INTO `district` VALUES ('234', '莱芜市', '2', '15', '0'); INSERT INTO `district` VALUES ('235', '临沂市', '2', '15', '0'); INSERT INTO `district` VALUES ('236', '德州市', '2', '15', '0'); INSERT INTO `district` VALUES ('237', '聊城市', '2', '15', '0'); INSERT INTO `district` VALUES ('238', '滨州市', '2', '15', '0'); INSERT INTO `district` VALUES ('239', '菏泽市', '2', '15', '0'); INSERT INTO `district` VALUES ('240', '郑州市', '2', '16', '0'); INSERT INTO `district` VALUES ('241', '开封市', '2', '16', '0'); INSERT INTO `district` VALUES ('242', '洛阳市', '2', '16', '0'); INSERT INTO `district` VALUES ('243', '平顶山市', '2', '16', '0'); INSERT INTO `district` VALUES ('244', '安阳市', '2', '16', '0'); INSERT INTO `district` VALUES ('245', '鹤壁市', '2', '16', '0'); INSERT INTO `district` VALUES ('246', '新乡市', '2', '16', '0'); INSERT INTO `district` VALUES ('247', '焦作市', '2', '16', '0'); INSERT INTO `district` VALUES ('248', '濮阳市', '2', '16', '0'); INSERT INTO `district` VALUES ('249', '许昌市', '2', '16', '0'); INSERT INTO `district` VALUES ('250', '漯河市', '2', '16', '0'); INSERT INTO `district` VALUES ('251', '三门峡市', '2', '16', '0'); INSERT INTO `district` VALUES ('252', '南阳市', '2', '16', '0'); INSERT INTO `district` VALUES ('253', '商丘市', '2', '16', '0'); INSERT INTO `district` VALUES ('254', '信阳市', '2', '16', '0'); INSERT INTO `district` VALUES ('255', '周口市', '2', '16', '0'); INSERT INTO `district` VALUES ('256', '驻马店市', '2', '16', '0'); INSERT INTO `district` VALUES ('257', '济源市', '2', '16', '0'); INSERT INTO `district` VALUES ('258', '武汉市', '2', '17', '0'); INSERT INTO `district` VALUES ('259', '黄石市', '2', '17', '0'); INSERT INTO `district` VALUES ('260', '十堰市', '2', '17', '0'); INSERT INTO `district` VALUES ('261', '宜昌市', '2', '17', '0'); INSERT INTO `district` VALUES ('262', '襄樊市', '2', '17', '0'); INSERT INTO `district` VALUES ('263', '鄂州市', '2', '17', '0'); INSERT INTO `district` VALUES ('264', '荆门市', '2', '17', '0'); INSERT INTO `district` VALUES ('265', '孝感市', '2', '17', '0'); INSERT INTO `district` VALUES ('266', '荆州市', '2', '17', '0'); INSERT INTO `district` VALUES ('267', '黄冈市', '2', '17', '0'); INSERT INTO `district` VALUES ('268', '咸宁市', '2', '17', '0'); INSERT INTO `district` VALUES ('269', '随州市', '2', '17', '0'); INSERT INTO `district` VALUES ('270', '恩施土家族苗族自治州', '2', '17', '0'); INSERT INTO `district` VALUES ('271', '仙桃市', '2', '17', '0'); INSERT INTO `district` VALUES ('272', '潜江市', '2', '17', '0'); INSERT INTO `district` VALUES ('273', '天门市', '2', '17', '0'); INSERT INTO `district` VALUES ('274', '神农架林区', '2', '17', '0'); INSERT INTO `district` VALUES ('275', '长沙市', '2', '18', '0'); INSERT INTO `district` VALUES ('276', '株洲市', '2', '18', '0'); INSERT INTO `district` VALUES ('277', '湘潭市', '2', '18', '0'); INSERT INTO `district` VALUES ('278', '衡阳市', '2', '18', '0'); INSERT INTO `district` VALUES ('279', '邵阳市', '2', '18', '0'); INSERT INTO `district` VALUES ('280', '岳阳市', '2', '18', '0'); INSERT INTO `district` VALUES ('281', '常德市', '2', '18', '0'); INSERT INTO `district` VALUES ('282', '张家界市', '2', '18', '0'); INSERT INTO `district` VALUES ('283', '益阳市', '2', '18', '0'); INSERT INTO `district` VALUES ('284', '郴州市', '2', '18', '0'); INSERT INTO `district` VALUES ('285', '永州市', '2', '18', '0'); INSERT INTO `district` VALUES ('286', '怀化市', '2', '18', '0'); INSERT INTO `district` VALUES ('287', '娄底市', '2', '18', '0'); INSERT INTO `district` VALUES ('288', '湘西土家族苗族自治州', '2', '18', '0'); INSERT INTO `district` VALUES ('289', '广州市', '2', '19', '0'); INSERT INTO `district` VALUES ('290', '韶关市', '2', '19', '0'); INSERT INTO `district` VALUES ('291', '深圳市', '2', '19', '0'); INSERT INTO `district` VALUES ('292', '珠海市', '2', '19', '0'); INSERT INTO `district` VALUES ('293', '汕头市', '2', '19', '0'); INSERT INTO `district` VALUES ('294', '佛山市', '2', '19', '0'); INSERT INTO `district` VALUES ('295', '江门市', '2', '19', '0'); INSERT INTO `district` VALUES ('296', '湛江市', '2', '19', '0'); INSERT INTO `district` VALUES ('297', '茂名市', '2', '19', '0'); INSERT INTO `district` VALUES ('298', '肇庆市', '2', '19', '0'); INSERT INTO `district` VALUES ('299', '惠州市', '2', '19', '0'); INSERT INTO `district` VALUES ('300', '梅州市', '2', '19', '0'); INSERT INTO `district` VALUES ('301', '汕尾市', '2', '19', '0'); INSERT INTO `district` VALUES ('302', '河源市', '2', '19', '0'); INSERT INTO `district` VALUES ('303', '阳江市', '2', '19', '0'); INSERT INTO `district` VALUES ('304', '清远市', '2', '19', '0'); INSERT INTO `district` VALUES ('305', '东莞市', '2', '19', '0'); INSERT INTO `district` VALUES ('306', '中山市', '2', '19', '0'); INSERT INTO `district` VALUES ('307', '潮州市', '2', '19', '0'); INSERT INTO `district` VALUES ('308', '揭阳市', '2', '19', '0'); INSERT INTO `district` VALUES ('309', '云浮市', '2', '19', '0'); INSERT INTO `district` VALUES ('310', '南宁市', '2', '20', '0'); INSERT INTO `district` VALUES ('311', '柳州市', '2', '20', '0'); INSERT INTO `district` VALUES ('312', '桂林市', '2', '20', '0'); INSERT INTO `district` VALUES ('313', '梧州市', '2', '20', '0'); INSERT INTO `district` VALUES ('314', '北海市', '2', '20', '0'); INSERT INTO `district` VALUES ('315', '防城港市', '2', '20', '0'); INSERT INTO `district` VALUES ('316', '钦州市', '2', '20', '0'); INSERT INTO `district` VALUES ('317', '贵港市', '2', '20', '0'); INSERT INTO `district` VALUES ('318', '玉林市', '2', '20', '0'); INSERT INTO `district` VALUES ('319', '百色市', '2', '20', '0'); INSERT INTO `district` VALUES ('320', '贺州市', '2', '20', '0'); INSERT INTO `district` VALUES ('321', '河池市', '2', '20', '0'); INSERT INTO `district` VALUES ('322', '来宾市', '2', '20', '0'); INSERT INTO `district` VALUES ('323', '崇左市', '2', '20', '0'); INSERT INTO `district` VALUES ('324', '海口市', '2', '21', '0'); INSERT INTO `district` VALUES ('325', '三亚市', '2', '21', '0'); INSERT INTO `district` VALUES ('326', '五指山市', '2', '21', '0'); INSERT INTO `district` VALUES ('327', '琼海市', '2', '21', '0'); INSERT INTO `district` VALUES ('328', '儋州市', '2', '21', '0'); INSERT INTO `district` VALUES ('329', '文昌市', '2', '21', '0'); INSERT INTO `district` VALUES ('330', '万宁市', '2', '21', '0'); INSERT INTO `district` VALUES ('331', '东方市', '2', '21', '0'); INSERT INTO `district` VALUES ('332', '定安县', '2', '21', '0'); INSERT INTO `district` VALUES ('333', '屯昌县', '2', '21', '0'); INSERT INTO `district` VALUES ('334', '澄迈县', '2', '21', '0'); INSERT INTO `district` VALUES ('335', '临高县', '2', '21', '0'); INSERT INTO `district` VALUES ('336', '白沙黎族自治县', '2', '21', '0'); INSERT INTO `district` VALUES ('337', '昌江黎族自治县', '2', '21', '0'); INSERT INTO `district` VALUES ('338', '乐东黎族自治县', '2', '21', '0'); INSERT INTO `district` VALUES ('339', '陵水黎族自治县', '2', '21', '0'); INSERT INTO `district` VALUES ('340', '保亭黎族苗族自治县', '2', '21', '0'); INSERT INTO `district` VALUES ('341', '琼中黎族苗族自治县', '2', '21', '0'); INSERT INTO `district` VALUES ('342', '西沙群岛', '2', '21', '0'); INSERT INTO `district` VALUES ('343', '南沙群岛', '2', '21', '0'); INSERT INTO `district` VALUES ('344', '中沙群岛的岛礁及其海域', '2', '21', '0'); INSERT INTO `district` VALUES ('345', '万州区', '3', '5028', '0'); INSERT INTO `district` VALUES ('346', '涪陵区', '3', '5028', '0'); INSERT INTO `district` VALUES ('347', '渝中区', '3', '5028', '0'); INSERT INTO `district` VALUES ('348', '大渡口区', '3', '5028', '0'); INSERT INTO `district` VALUES ('349', '江北区', '3', '5028', '0'); INSERT INTO `district` VALUES ('350', '沙坪坝区', '3', '5028', '0'); INSERT INTO `district` VALUES ('351', '九龙坡区', '3', '5028', '0'); INSERT INTO `district` VALUES ('352', '南岸区', '3', '5028', '0'); INSERT INTO `district` VALUES ('353', '北碚区', '3', '5028', '0'); INSERT INTO `district` VALUES ('354', '双桥区', '3', '5028', '0'); INSERT INTO `district` VALUES ('355', '万盛区', '3', '5028', '0'); INSERT INTO `district` VALUES ('356', '渝北区', '3', '5028', '0'); INSERT INTO `district` VALUES ('357', '巴南区', '3', '5028', '0'); INSERT INTO `district` VALUES ('358', '黔江区', '3', '5028', '0'); INSERT INTO `district` VALUES ('359', '长寿区', '3', '5028', '0'); INSERT INTO `district` VALUES ('360', '綦江县', '3', '5028', '0'); INSERT INTO `district` VALUES ('361', '潼南县', '3', '5028', '0'); INSERT INTO `district` VALUES ('362', '铜梁县', '3', '5028', '0'); INSERT INTO `district` VALUES ('363', '大足县', '3', '5028', '0'); INSERT INTO `district` VALUES ('364', '荣昌县', '3', '5028', '0'); INSERT INTO `district` VALUES ('365', '璧山县', '3', '5028', '0'); INSERT INTO `district` VALUES ('366', '梁平县', '3', '5028', '0'); INSERT INTO `district` VALUES ('367', '城口县', '3', '5028', '0'); INSERT INTO `district` VALUES ('368', '丰都县', '3', '5028', '0'); INSERT INTO `district` VALUES ('369', '垫江县', '3', '5028', '0'); INSERT INTO `district` VALUES ('370', '武隆县', '3', '5028', '0'); INSERT INTO `district` VALUES ('371', '忠县', '3', '5028', '0'); INSERT INTO `district` VALUES ('372', '开县', '3', '5028', '0'); INSERT INTO `district` VALUES ('373', '云阳县', '3', '5028', '0'); INSERT INTO `district` VALUES ('374', '奉节县', '3', '5028', '0'); INSERT INTO `district` VALUES ('375', '巫山县', '3', '5028', '0'); INSERT INTO `district` VALUES ('376', '巫溪县', '3', '5028', '0'); INSERT INTO `district` VALUES ('377', '石柱土家族自治县', '3', '5028', '0'); INSERT INTO `district` VALUES ('378', '秀山土家族苗族自治县', '3', '5028', '0'); INSERT INTO `district` VALUES ('379', '酉阳土家族苗族自治县', '3', '5028', '0'); INSERT INTO `district` VALUES ('380', '彭水苗族土家族自治县', '3', '5028', '0'); INSERT INTO `district` VALUES ('381', '江津市', '3', '5028', '0'); INSERT INTO `district` VALUES ('382', '合川市', '3', '5028', '0'); INSERT INTO `district` VALUES ('383', '永川市', '3', '5028', '0'); INSERT INTO `district` VALUES ('384', '南川市', '3', '5028', '0'); INSERT INTO `district` VALUES ('385', '成都市', '2', '23', '0'); INSERT INTO `district` VALUES ('386', '自贡市', '2', '23', '0'); INSERT INTO `district` VALUES ('387', '攀枝花市', '2', '23', '0'); INSERT INTO `district` VALUES ('388', '泸州市', '2', '23', '0'); INSERT INTO `district` VALUES ('389', '德阳市', '2', '23', '0'); INSERT INTO `district` VALUES ('390', '绵阳市', '2', '23', '0'); INSERT INTO `district` VALUES ('391', '广元市', '2', '23', '0'); INSERT INTO `district` VALUES ('392', '遂宁市', '2', '23', '0'); INSERT INTO `district` VALUES ('393', '内江市', '2', '23', '0'); INSERT INTO `district` VALUES ('394', '乐山市', '2', '23', '0'); INSERT INTO `district` VALUES ('395', '南充市', '2', '23', '0'); INSERT INTO `district` VALUES ('396', '眉山市', '2', '23', '0'); INSERT INTO `district` VALUES ('397', '宜宾市', '2', '23', '0'); INSERT INTO `district` VALUES ('398', '广安市', '2', '23', '0'); INSERT INTO `district` VALUES ('399', '达州市', '2', '23', '0'); INSERT INTO `district` VALUES ('400', '雅安市', '2', '23', '0'); INSERT INTO `district` VALUES ('401', '巴中市', '2', '23', '0'); INSERT INTO `district` VALUES ('402', '资阳市', '2', '23', '0'); INSERT INTO `district` VALUES ('403', '阿坝藏族羌族自治州', '2', '23', '0'); INSERT INTO `district` VALUES ('404', '甘孜藏族自治州', '2', '23', '0'); INSERT INTO `district` VALUES ('405', '凉山彝族自治州', '2', '23', '0'); INSERT INTO `district` VALUES ('406', '贵阳市', '2', '24', '0'); INSERT INTO `district` VALUES ('407', '六盘水市', '2', '24', '0'); INSERT INTO `district` VALUES ('408', '遵义市', '2', '24', '0'); INSERT INTO `district` VALUES ('409', '安顺市', '2', '24', '0'); INSERT INTO `district` VALUES ('410', '铜仁地区', '2', '24', '0'); INSERT INTO `district` VALUES ('411', '黔西南布依族苗族自治州', '2', '24', '0'); INSERT INTO `district` VALUES ('412', '毕节地区', '2', '24', '0'); INSERT INTO `district` VALUES ('413', '黔东南苗族侗族自治州', '2', '24', '0'); INSERT INTO `district` VALUES ('414', '黔南布依族苗族自治州', '2', '24', '0'); INSERT INTO `district` VALUES ('415', '昆明市', '2', '25', '0'); INSERT INTO `district` VALUES ('416', '曲靖市', '2', '25', '0'); INSERT INTO `district` VALUES ('417', '玉溪市', '2', '25', '0'); INSERT INTO `district` VALUES ('418', '保山市', '2', '25', '0'); INSERT INTO `district` VALUES ('419', '昭通市', '2', '25', '0'); INSERT INTO `district` VALUES ('420', '丽江市', '2', '25', '0'); INSERT INTO `district` VALUES ('421', '思茅市', '2', '25', '0'); INSERT INTO `district` VALUES ('422', '临沧市', '2', '25', '0'); INSERT INTO `district` VALUES ('423', '楚雄彝族自治州', '2', '25', '0'); INSERT INTO `district` VALUES ('424', '红河哈尼族彝族自治州', '2', '25', '0'); INSERT INTO `district` VALUES ('425', '文山壮族苗族自治州', '2', '25', '0'); INSERT INTO `district` VALUES ('426', '西双版纳傣族自治州', '2', '25', '0'); INSERT INTO `district` VALUES ('427', '大理白族自治州', '2', '25', '0'); INSERT INTO `district` VALUES ('428', '德宏傣族景颇族自治州', '2', '25', '0'); INSERT INTO `district` VALUES ('429', '怒江傈僳族自治州', '2', '25', '0'); INSERT INTO `district` VALUES ('430', '迪庆藏族自治州', '2', '25', '0'); INSERT INTO `district` VALUES ('431', '拉萨市', '2', '26', '0'); INSERT INTO `district` VALUES ('432', '昌都地区', '2', '26', '0'); INSERT INTO `district` VALUES ('433', '山南地区', '2', '26', '0'); INSERT INTO `district` VALUES ('434', '日喀则地区', '2', '26', '0'); INSERT INTO `district` VALUES ('435', '那曲地区', '2', '26', '0'); INSERT INTO `district` VALUES ('436', '阿里地区', '2', '26', '0'); INSERT INTO `district` VALUES ('437', '林芝地区', '2', '26', '0'); INSERT INTO `district` VALUES ('438', '西安市', '2', '27', '0'); INSERT INTO `district` VALUES ('439', '铜川市', '2', '27', '0'); INSERT INTO `district` VALUES ('440', '宝鸡市', '2', '27', '0'); INSERT INTO `district` VALUES ('441', '咸阳市', '2', '27', '0'); INSERT INTO `district` VALUES ('442', '渭南市', '2', '27', '0'); INSERT INTO `district` VALUES ('443', '延安市', '2', '27', '0'); INSERT INTO `district` VALUES ('444', '汉中市', '2', '27', '0'); INSERT INTO `district` VALUES ('445', '榆林市', '2', '27', '0'); INSERT INTO `district` VALUES ('446', '安康市', '2', '27', '0'); INSERT INTO `district` VALUES ('447', '商洛市', '2', '27', '0'); INSERT INTO `district` VALUES ('448', '兰州市', '2', '28', '0'); INSERT INTO `district` VALUES ('449', '嘉峪关市', '2', '28', '0'); INSERT INTO `district` VALUES ('450', '金昌市', '2', '28', '0'); INSERT INTO `district` VALUES ('451', '白银市', '2', '28', '0'); INSERT INTO `district` VALUES ('452', '天水市', '2', '28', '0'); INSERT INTO `district` VALUES ('453', '武威市', '2', '28', '0'); INSERT INTO `district` VALUES ('454', '张掖市', '2', '28', '0'); INSERT INTO `district` VALUES ('455', '平凉市', '2', '28', '0'); INSERT INTO `district` VALUES ('456', '酒泉市', '2', '28', '0'); INSERT INTO `district` VALUES ('457', '庆阳市', '2', '28', '0'); INSERT INTO `district` VALUES ('458', '定西市', '2', '28', '0'); INSERT INTO `district` VALUES ('459', '陇南市', '2', '28', '0'); INSERT INTO `district` VALUES ('460', '临夏回族自治州', '2', '28', '0'); INSERT INTO `district` VALUES ('461', '甘南藏族自治州', '2', '28', '0'); INSERT INTO `district` VALUES ('462', '西宁市', '2', '29', '0'); INSERT INTO `district` VALUES ('463', '海东地区', '2', '29', '0'); INSERT INTO `district` VALUES ('464', '海北藏族自治州', '2', '29', '0'); INSERT INTO `district` VALUES ('465', '黄南藏族自治州', '2', '29', '0'); INSERT INTO `district` VALUES ('466', '海南藏族自治州', '2', '29', '0'); INSERT INTO `district` VALUES ('467', '果洛藏族自治州', '2', '29', '0'); INSERT INTO `district` VALUES ('468', '玉树藏族自治州', '2', '29', '0'); INSERT INTO `district` VALUES ('469', '海西蒙古族藏族自治州', '2', '29', '0'); INSERT INTO `district` VALUES ('470', '银川市', '2', '30', '0'); INSERT INTO `district` VALUES ('471', '石嘴山市', '2', '30', '0'); INSERT INTO `district` VALUES ('472', '吴忠市', '2', '30', '0'); INSERT INTO `district` VALUES ('473', '固原市', '2', '30', '0'); INSERT INTO `district` VALUES ('474', '中卫市', '2', '30', '0'); INSERT INTO `district` VALUES ('475', '乌鲁木齐市', '2', '31', '0'); INSERT INTO `district` VALUES ('476', '克拉玛依市', '2', '31', '0'); INSERT INTO `district` VALUES ('477', '吐鲁番地区', '2', '31', '0'); INSERT INTO `district` VALUES ('478', '哈密地区', '2', '31', '0'); INSERT INTO `district` VALUES ('479', '昌吉回族自治州', '2', '31', '0'); INSERT INTO `district` VALUES ('480', '博尔塔拉蒙古自治州', '2', '31', '0'); INSERT INTO `district` VALUES ('481', '巴音郭楞蒙古自治州', '2', '31', '0'); INSERT INTO `district` VALUES ('482', '阿克苏地区', '2', '31', '0'); INSERT INTO `district` VALUES ('483', '克孜勒苏柯尔克孜自治州', '2', '31', '0'); INSERT INTO `district` VALUES ('484', '喀什地区', '2', '31', '0'); INSERT INTO `district` VALUES ('485', '和田地区', '2', '31', '0'); INSERT INTO `district` VALUES ('486', '伊犁哈萨克自治州', '2', '31', '0'); INSERT INTO `district` VALUES ('487', '塔城地区', '2', '31', '0'); INSERT INTO `district` VALUES ('488', '阿勒泰地区', '2', '31', '0'); INSERT INTO `district` VALUES ('489', '石河子市', '2', '31', '0'); INSERT INTO `district` VALUES ('490', '阿拉尔市', '2', '31', '0'); INSERT INTO `district` VALUES ('491', '图木舒克市', '2', '31', '0'); INSERT INTO `district` VALUES ('492', '五家渠市', '2', '31', '0'); INSERT INTO `district` VALUES ('493', '台北市', '2', '32', '0'); INSERT INTO `district` VALUES ('494', '高雄市', '2', '32', '0'); INSERT INTO `district` VALUES ('495', '基隆市', '2', '32', '0'); INSERT INTO `district` VALUES ('496', '台中市', '2', '32', '0'); INSERT INTO `district` VALUES ('497', '台南市', '2', '32', '0'); INSERT INTO `district` VALUES ('498', '新竹市', '2', '32', '0'); INSERT INTO `district` VALUES ('499', '嘉义市', '2', '32', '0'); INSERT INTO `district` VALUES ('500', '台北县', '2', '32', '0'); INSERT INTO `district` VALUES ('501', '宜兰县', '2', '32', '0'); INSERT INTO `district` VALUES ('502', '桃园县', '2', '32', '0'); INSERT INTO `district` VALUES ('503', '新竹县', '2', '32', '0'); INSERT INTO `district` VALUES ('504', '苗栗县', '2', '32', '0'); INSERT INTO `district` VALUES ('505', '台中县', '2', '32', '0'); INSERT INTO `district` VALUES ('506', '彰化县', '2', '32', '0'); INSERT INTO `district` VALUES ('507', '南投县', '2', '32', '0'); INSERT INTO `district` VALUES ('508', '云林县', '2', '32', '0'); INSERT INTO `district` VALUES ('509', '嘉义县', '2', '32', '0'); INSERT INTO `district` VALUES ('510', '台南县', '2', '32', '0'); INSERT INTO `district` VALUES ('511', '高雄县', '2', '32', '0'); INSERT INTO `district` VALUES ('512', '屏东县', '2', '32', '0'); INSERT INTO `district` VALUES ('513', '澎湖县', '2', '32', '0'); INSERT INTO `district` VALUES ('514', '台东县', '2', '32', '0'); INSERT INTO `district` VALUES ('515', '花莲县', '2', '32', '0'); INSERT INTO `district` VALUES ('516', '中西区', '2', '33', '0'); INSERT INTO `district` VALUES ('517', '东区', '2', '33', '0'); INSERT INTO `district` VALUES ('518', '九龙城区', '2', '33', '0'); INSERT INTO `district` VALUES ('519', '观塘区', '2', '33', '0'); INSERT INTO `district` VALUES ('520', '南区', '2', '33', '0'); INSERT INTO `district` VALUES ('521', '深水埗区', '2', '33', '0'); INSERT INTO `district` VALUES ('522', '黄大仙区', '2', '33', '0'); INSERT INTO `district` VALUES ('523', '湾仔区', '2', '33', '0'); INSERT INTO `district` VALUES ('524', '油尖旺区', '2', '33', '0'); INSERT INTO `district` VALUES ('525', '离岛区', '2', '33', '0'); INSERT INTO `district` VALUES ('526', '葵青区', '2', '33', '0'); INSERT INTO `district` VALUES ('527', '北区', '2', '33', '0'); INSERT INTO `district` VALUES ('528', '西贡区', '2', '33', '0'); INSERT INTO `district` VALUES ('529', '沙田区', '2', '33', '0'); INSERT INTO `district` VALUES ('530', '屯门区', '2', '33', '0'); INSERT INTO `district` VALUES ('531', '大埔区', '2', '33', '0'); INSERT INTO `district` VALUES ('532', '荃湾区', '2', '33', '0'); INSERT INTO `district` VALUES ('533', '元朗区', '2', '33', '0'); INSERT INTO `district` VALUES ('534', '澳门特别行政区', '2', '34', '0'); INSERT INTO `district` VALUES ('566', '其他', '2', '36', '0'); INSERT INTO `district` VALUES ('1126', '井陉县', '3', '73', '0'); INSERT INTO `district` VALUES ('1127', '井陉矿区', '3', '73', '0'); INSERT INTO `district` VALUES ('1128', '元氏县', '3', '73', '0'); INSERT INTO `district` VALUES ('1129', '平山县', '3', '73', '0'); INSERT INTO `district` VALUES ('1130', '新乐市', '3', '73', '0'); INSERT INTO `district` VALUES ('1131', '新华区', '3', '73', '0'); INSERT INTO `district` VALUES ('1132', '无极县', '3', '73', '0'); INSERT INTO `district` VALUES ('1133', '晋州市', '3', '73', '0'); INSERT INTO `district` VALUES ('1134', '栾城县', '3', '73', '0'); INSERT INTO `district` VALUES ('1135', '桥东区', '3', '73', '0'); INSERT INTO `district` VALUES ('1136', '桥西区', '3', '73', '0'); INSERT INTO `district` VALUES ('1137', '正定县', '3', '73', '0'); INSERT INTO `district` VALUES ('1138', '深泽县', '3', '73', '0'); INSERT INTO `district` VALUES ('1139', '灵寿县', '3', '73', '0'); INSERT INTO `district` VALUES ('1140', '藁城市', '3', '73', '0'); INSERT INTO `district` VALUES ('1141', '行唐县', '3', '73', '0'); INSERT INTO `district` VALUES ('1142', '裕华区', '3', '73', '0'); INSERT INTO `district` VALUES ('1143', '赞皇县', '3', '73', '0'); INSERT INTO `district` VALUES ('1144', '赵县', '3', '73', '0'); INSERT INTO `district` VALUES ('1145', '辛集市', '3', '73', '0'); INSERT INTO `district` VALUES ('1146', '长安区', '3', '73', '0'); INSERT INTO `district` VALUES ('1147', '高邑县', '3', '73', '0'); INSERT INTO `district` VALUES ('1148', '鹿泉市', '3', '73', '0'); INSERT INTO `district` VALUES ('1149', '丰南区', '3', '74', '0'); INSERT INTO `district` VALUES ('1150', '丰润区', '3', '74', '0'); INSERT INTO `district` VALUES ('1151', '乐亭县', '3', '74', '0'); INSERT INTO `district` VALUES ('1152', '古冶区', '3', '74', '0'); INSERT INTO `district` VALUES ('1153', '唐海县', '3', '74', '0'); INSERT INTO `district` VALUES ('1154', '开平区', '3', '74', '0'); INSERT INTO `district` VALUES ('1155', '滦南县', '3', '74', '0'); INSERT INTO `district` VALUES ('1156', '滦县', '3', '74', '0'); INSERT INTO `district` VALUES ('1157', '玉田县', '3', '74', '0'); INSERT INTO `district` VALUES ('1158', '路北区', '3', '74', '0'); INSERT INTO `district` VALUES ('1159', '路南区', '3', '74', '0'); INSERT INTO `district` VALUES ('1160', '迁安市', '3', '74', '0'); INSERT INTO `district` VALUES ('1161', '迁西县', '3', '74', '0'); INSERT INTO `district` VALUES ('1162', '遵化市', '3', '74', '0'); INSERT INTO `district` VALUES ('1163', '北戴河区', '3', '75', '0'); INSERT INTO `district` VALUES ('1164', '卢龙县', '3', '75', '0'); INSERT INTO `district` VALUES ('1165', '山海关区', '3', '75', '0'); INSERT INTO `district` VALUES ('1166', '抚宁县', '3', '75', '0'); INSERT INTO `district` VALUES ('1167', '昌黎县', '3', '75', '0'); INSERT INTO `district` VALUES ('1168', '海港区', '3', '75', '0'); INSERT INTO `district` VALUES ('1169', '青龙满族自治县', '3', '75', '0'); INSERT INTO `district` VALUES ('1170', '丛台区', '3', '76', '0'); INSERT INTO `district` VALUES ('1171', '临漳县', '3', '76', '0'); INSERT INTO `district` VALUES ('1172', '复兴区', '3', '76', '0'); INSERT INTO `district` VALUES ('1173', '大名县', '3', '76', '0'); INSERT INTO `district` VALUES ('1174', '峰峰矿区', '3', '76', '0'); INSERT INTO `district` VALUES ('1175', '广平县', '3', '76', '0'); INSERT INTO `district` VALUES ('1176', '成安县', '3', '76', '0'); INSERT INTO `district` VALUES ('1177', '曲周县', '3', '76', '0'); INSERT INTO `district` VALUES ('1178', '武安市', '3', '76', '0'); INSERT INTO `district` VALUES ('1179', '永年县', '3', '76', '0'); INSERT INTO `district` VALUES ('1180', '涉县', '3', '76', '0'); INSERT INTO `district` VALUES ('1181', '磁县', '3', '76', '0'); INSERT INTO `district` VALUES ('1182', '肥乡县', '3', '76', '0'); INSERT INTO `district` VALUES ('1183', '邯山区', '3', '76', '0'); INSERT INTO `district` VALUES ('1184', '邯郸县', '3', '76', '0'); INSERT INTO `district` VALUES ('1185', '邱县', '3', '76', '0'); INSERT INTO `district` VALUES ('1186', '馆陶县', '3', '76', '0'); INSERT INTO `district` VALUES ('1187', '魏县', '3', '76', '0'); INSERT INTO `district` VALUES ('1188', '鸡泽县', '3', '76', '0'); INSERT INTO `district` VALUES ('1189', '临城县', '3', '77', '0'); INSERT INTO `district` VALUES ('1190', '临西县', '3', '77', '0'); INSERT INTO `district` VALUES ('1191', '任县', '3', '77', '0'); INSERT INTO `district` VALUES ('1192', '内丘县', '3', '77', '0'); INSERT INTO `district` VALUES ('1193', '南和县', '3', '77', '0'); INSERT INTO `district` VALUES ('1194', '南宫市', '3', '77', '0'); INSERT INTO `district` VALUES ('1195', '威县', '3', '77', '0'); INSERT INTO `district` VALUES ('1196', '宁晋县', '3', '77', '0'); INSERT INTO `district` VALUES ('1197', '巨鹿县', '3', '77', '0'); INSERT INTO `district` VALUES ('1198', '平乡县', '3', '77', '0'); INSERT INTO `district` VALUES ('1199', '广宗县', '3', '77', '0'); INSERT INTO `district` VALUES ('1200', '新河县', '3', '77', '0'); INSERT INTO `district` VALUES ('1201', '柏乡县', '3', '77', '0'); INSERT INTO `district` VALUES ('1202', '桥东区', '3', '77', '0'); INSERT INTO `district` VALUES ('1203', '桥西区', '3', '77', '0'); INSERT INTO `district` VALUES ('1204', '沙河市', '3', '77', '0'); INSERT INTO `district` VALUES ('1205', '清河县', '3', '77', '0'); INSERT INTO `district` VALUES ('1206', '邢台县', '3', '77', '0'); INSERT INTO `district` VALUES ('1207', '隆尧县', '3', '77', '0'); INSERT INTO `district` VALUES ('1208', '北市区', '3', '78', '0'); INSERT INTO `district` VALUES ('1209', '南市区', '3', '78', '0'); INSERT INTO `district` VALUES ('1210', '博野县', '3', '78', '0'); INSERT INTO `district` VALUES ('1211', '唐县', '3', '78', '0'); INSERT INTO `district` VALUES ('1212', '安国市', '3', '78', '0'); INSERT INTO `district` VALUES ('1213', '安新县', '3', '78', '0'); INSERT INTO `district` VALUES ('1214', '定兴县', '3', '78', '0'); INSERT INTO `district` VALUES ('1215', '定州市', '3', '78', '0'); INSERT INTO `district` VALUES ('1216', '容城县', '3', '78', '0'); INSERT INTO `district` VALUES ('1217', '徐水县', '3', '78', '0'); INSERT INTO `district` VALUES ('1218', '新市区', '3', '78', '0'); INSERT INTO `district` VALUES ('1219', '易县', '3', '78', '0'); INSERT INTO `district` VALUES ('1220', '曲阳县', '3', '78', '0'); INSERT INTO `district` VALUES ('1221', '望都县', '3', '78', '0'); INSERT INTO `district` VALUES ('1222', '涞水县', '3', '78', '0'); INSERT INTO `district` VALUES ('1223', '涞源县', '3', '78', '0'); INSERT INTO `district` VALUES ('1224', '涿州市', '3', '78', '0'); INSERT INTO `district` VALUES ('1225', '清苑县', '3', '78', '0'); INSERT INTO `district` VALUES ('1226', '满城县', '3', '78', '0'); INSERT INTO `district` VALUES ('1227', '蠡县', '3', '78', '0'); INSERT INTO `district` VALUES ('1228', '阜平县', '3', '78', '0'); INSERT INTO `district` VALUES ('1229', '雄县', '3', '78', '0'); INSERT INTO `district` VALUES ('1230', '顺平县', '3', '78', '0'); INSERT INTO `district` VALUES ('1231', '高碑店市', '3', '78', '0'); INSERT INTO `district` VALUES ('1232', '高阳县', '3', '78', '0'); INSERT INTO `district` VALUES ('1233', '万全县', '3', '79', '0'); INSERT INTO `district` VALUES ('1234', '下花园区', '3', '79', '0'); INSERT INTO `district` VALUES ('1235', '宣化区', '3', '79', '0'); INSERT INTO `district` VALUES ('1236', '宣化县', '3', '79', '0'); INSERT INTO `district` VALUES ('1237', '尚义县', '3', '79', '0'); INSERT INTO `district` VALUES ('1238', '崇礼县', '3', '79', '0'); INSERT INTO `district` VALUES ('1239', '康保县', '3', '79', '0'); INSERT INTO `district` VALUES ('1240', '张北县', '3', '79', '0'); INSERT INTO `district` VALUES ('1241', '怀安县', '3', '79', '0'); INSERT INTO `district` VALUES ('1242', '怀来县', '3', '79', '0'); INSERT INTO `district` VALUES ('1243', '桥东区', '3', '79', '0'); INSERT INTO `district` VALUES ('1244', '桥西区', '3', '79', '0'); INSERT INTO `district` VALUES ('1245', '沽源县', '3', '79', '0'); INSERT INTO `district` VALUES ('1246', '涿鹿县', '3', '79', '0'); INSERT INTO `district` VALUES ('1247', '蔚县', '3', '79', '0'); INSERT INTO `district` VALUES ('1248', '赤城县', '3', '79', '0'); INSERT INTO `district` VALUES ('1249', '阳原县', '3', '79', '0'); INSERT INTO `district` VALUES ('1250', '丰宁满族自治县', '3', '80', '0'); INSERT INTO `district` VALUES ('1251', '兴隆县', '3', '80', '0'); INSERT INTO `district` VALUES ('1252', '双桥区', '3', '80', '0'); INSERT INTO `district` VALUES ('1253', '双滦区', '3', '80', '0'); INSERT INTO `district` VALUES ('1254', '围场满族蒙古族自治县', '3', '80', '0'); INSERT INTO `district` VALUES ('1255', '宽城满族自治县', '3', '80', '0'); INSERT INTO `district` VALUES ('1256', '平泉县', '3', '80', '0'); INSERT INTO `district` VALUES ('1257', '承德县', '3', '80', '0'); INSERT INTO `district` VALUES ('1258', '滦平县', '3', '80', '0'); INSERT INTO `district` VALUES ('1259', '隆化县', '3', '80', '0'); INSERT INTO `district` VALUES ('1260', '鹰手营子矿区', '3', '80', '0'); INSERT INTO `district` VALUES ('1261', '冀州市', '3', '81', '0'); INSERT INTO `district` VALUES ('1262', '安平县', '3', '81', '0'); INSERT INTO `district` VALUES ('1263', '故城县', '3', '81', '0'); INSERT INTO `district` VALUES ('1264', '景县', '3', '81', '0'); INSERT INTO `district` VALUES ('1265', '枣强县', '3', '81', '0'); INSERT INTO `district` VALUES ('1266', '桃城区', '3', '81', '0'); INSERT INTO `district` VALUES ('1267', '武强县', '3', '81', '0'); INSERT INTO `district` VALUES ('1268', '武邑县', '3', '81', '0'); INSERT INTO `district` VALUES ('1269', '深州市', '3', '81', '0'); INSERT INTO `district` VALUES ('1270', '阜城县', '3', '81', '0'); INSERT INTO `district` VALUES ('1271', '饶阳县', '3', '81', '0'); INSERT INTO `district` VALUES ('1272', '三河市', '3', '82', '0'); INSERT INTO `district` VALUES ('1273', '固安县', '3', '82', '0'); INSERT INTO `district` VALUES ('1274', '大厂回族自治县', '3', '82', '0'); INSERT INTO `district` VALUES ('1275', '大城县', '3', '82', '0'); INSERT INTO `district` VALUES ('1276', '安次区', '3', '82', '0'); INSERT INTO `district` VALUES ('1277', '广阳区', '3', '82', '0'); INSERT INTO `district` VALUES ('1278', '文安县', '3', '82', '0'); INSERT INTO `district` VALUES ('1279', '永清县', '3', '82', '0'); INSERT INTO `district` VALUES ('1280', '霸州市', '3', '82', '0'); INSERT INTO `district` VALUES ('1281', '香河县', '3', '82', '0'); INSERT INTO `district` VALUES ('1282', '东光县', '3', '83', '0'); INSERT INTO `district` VALUES ('1283', '任丘市', '3', '83', '0'); INSERT INTO `district` VALUES ('1284', '南皮县', '3', '83', '0'); INSERT INTO `district` VALUES ('1285', '吴桥县', '3', '83', '0'); INSERT INTO `district` VALUES ('1286', '孟村回族自治县', '3', '83', '0'); INSERT INTO `district` VALUES ('1287', '新华区', '3', '83', '0'); INSERT INTO `district` VALUES ('1288', '沧县', '3', '83', '0'); INSERT INTO `district` VALUES ('1289', '河间市', '3', '83', '0'); INSERT INTO `district` VALUES ('1290', '泊头市', '3', '83', '0'); INSERT INTO `district` VALUES ('1291', '海兴县', '3', '83', '0'); INSERT INTO `district` VALUES ('1292', '献县', '3', '83', '0'); INSERT INTO `district` VALUES ('1293', '盐山县', '3', '83', '0'); INSERT INTO `district` VALUES ('1294', '肃宁县', '3', '83', '0'); INSERT INTO `district` VALUES ('1295', '运河区', '3', '83', '0'); INSERT INTO `district` VALUES ('1296', '青县', '3', '83', '0'); INSERT INTO `district` VALUES ('1297', '黄骅市', '3', '83', '0'); INSERT INTO `district` VALUES ('1298', '万柏林区', '3', '84', '0'); INSERT INTO `district` VALUES ('1299', '古交市', '3', '84', '0'); INSERT INTO `district` VALUES ('1300', '娄烦县', '3', '84', '0'); INSERT INTO `district` VALUES ('1301', '小店区', '3', '84', '0'); INSERT INTO `district` VALUES ('1302', '尖草坪区', '3', '84', '0'); INSERT INTO `district` VALUES ('1303', '晋源区', '3', '84', '0'); INSERT INTO `district` VALUES ('1304', '杏花岭区', '3', '84', '0'); INSERT INTO `district` VALUES ('1305', '清徐县', '3', '84', '0'); INSERT INTO `district` VALUES ('1306', '迎泽区', '3', '84', '0'); INSERT INTO `district` VALUES ('1307', '阳曲县', '3', '84', '0'); INSERT INTO `district` VALUES ('1308', '南郊区', '3', '85', '0'); INSERT INTO `district` VALUES ('1309', '城区', '3', '85', '0'); INSERT INTO `district` VALUES ('1310', '大同县', '3', '85', '0'); INSERT INTO `district` VALUES ('1311', '天镇县', '3', '85', '0'); INSERT INTO `district` VALUES ('1312', '左云县', '3', '85', '0'); INSERT INTO `district` VALUES ('1313', '广灵县', '3', '85', '0'); INSERT INTO `district` VALUES ('1314', '新荣区', '3', '85', '0'); INSERT INTO `district` VALUES ('1315', '浑源县', '3', '85', '0'); INSERT INTO `district` VALUES ('1316', '灵丘县', '3', '85', '0'); INSERT INTO `district` VALUES ('1317', '矿区', '3', '85', '0'); INSERT INTO `district` VALUES ('1318', '阳高县', '3', '85', '0'); INSERT INTO `district` VALUES ('1319', '城区', '3', '86', '0'); INSERT INTO `district` VALUES ('1320', '平定县', '3', '86', '0'); INSERT INTO `district` VALUES ('1321', '盂县', '3', '86', '0'); INSERT INTO `district` VALUES ('1322', '矿区', '3', '86', '0'); INSERT INTO `district` VALUES ('1323', '郊区', '3', '86', '0'); INSERT INTO `district` VALUES ('1324', '城区', '3', '87', '0'); INSERT INTO `district` VALUES ('1325', '壶关县', '3', '87', '0'); INSERT INTO `district` VALUES ('1326', '屯留县', '3', '87', '0'); INSERT INTO `district` VALUES ('1327', '平顺县', '3', '87', '0'); INSERT INTO `district` VALUES ('1328', '武乡县', '3', '87', '0'); INSERT INTO `district` VALUES ('1329', '沁县', '3', '87', '0'); INSERT INTO `district` VALUES ('1330', '沁源县', '3', '87', '0'); INSERT INTO `district` VALUES ('1331', '潞城市', '3', '87', '0'); INSERT INTO `district` VALUES ('1332', '襄垣县', '3', '87', '0'); INSERT INTO `district` VALUES ('1333', '郊区', '3', '87', '0'); INSERT INTO `district` VALUES ('1334', '长子县', '3', '87', '0'); INSERT INTO `district` VALUES ('1335', '长治县', '3', '87', '0'); INSERT INTO `district` VALUES ('1336', '黎城县', '3', '87', '0'); INSERT INTO `district` VALUES ('1337', '城区', '3', '88', '0'); INSERT INTO `district` VALUES ('1338', '沁水县', '3', '88', '0'); INSERT INTO `district` VALUES ('1339', '泽州县', '3', '88', '0'); INSERT INTO `district` VALUES ('1340', '阳城县', '3', '88', '0'); INSERT INTO `district` VALUES ('1341', '陵川县', '3', '88', '0'); INSERT INTO `district` VALUES ('1342', '高平市', '3', '88', '0'); INSERT INTO `district` VALUES ('1343', '右玉县', '3', '89', '0'); INSERT INTO `district` VALUES ('1344', '山阴县', '3', '89', '0'); INSERT INTO `district` VALUES ('1345', '平鲁区', '3', '89', '0'); INSERT INTO `district` VALUES ('1346', '应县', '3', '89', '0'); INSERT INTO `district` VALUES ('1347', '怀仁县', '3', '89', '0'); INSERT INTO `district` VALUES ('1348', '朔城区', '3', '89', '0'); INSERT INTO `district` VALUES ('1349', '介休市', '3', '90', '0'); INSERT INTO `district` VALUES ('1350', '和顺县', '3', '90', '0'); INSERT INTO `district` VALUES ('1351', '太谷县', '3', '90', '0'); INSERT INTO `district` VALUES ('1352', '寿阳县', '3', '90', '0'); INSERT INTO `district` VALUES ('1353', '左权县', '3', '90', '0'); INSERT INTO `district` VALUES ('1354', '平遥县', '3', '90', '0'); INSERT INTO `district` VALUES ('1355', '昔阳县', '3', '90', '0'); INSERT INTO `district` VALUES ('1356', '榆次区', '3', '90', '0'); INSERT INTO `district` VALUES ('1357', '榆社县', '3', '90', '0'); INSERT INTO `district` VALUES ('1358', '灵石县', '3', '90', '0'); INSERT INTO `district` VALUES ('1359', '祁县', '3', '90', '0'); INSERT INTO `district` VALUES ('1360', '万荣县', '3', '91', '0'); INSERT INTO `district` VALUES ('1361', '临猗县', '3', '91', '0'); INSERT INTO `district` VALUES ('1362', '垣曲县', '3', '91', '0'); INSERT INTO `district` VALUES ('1363', '夏县', '3', '91', '0'); INSERT INTO `district` VALUES ('1364', '平陆县', '3', '91', '0'); INSERT INTO `district` VALUES ('1365', '新绛县', '3', '91', '0'); INSERT INTO `district` VALUES ('1366', '永济市', '3', '91', '0'); INSERT INTO `district` VALUES ('1367', '河津市', '3', '91', '0'); INSERT INTO `district` VALUES ('1368', '盐湖区', '3', '91', '0'); INSERT INTO `district` VALUES ('1369', '稷山县', '3', '91', '0'); INSERT INTO `district` VALUES ('1370', '绛县', '3', '91', '0'); INSERT INTO `district` VALUES ('1371', '芮城县', '3', '91', '0'); INSERT INTO `district` VALUES ('1372', '闻喜县', '3', '91', '0'); INSERT INTO `district` VALUES ('1373', '五台县', '3', '92', '0'); INSERT INTO `district` VALUES ('1374', '五寨县', '3', '92', '0'); INSERT INTO `district` VALUES ('1375', '代县', '3', '92', '0'); INSERT INTO `district` VALUES ('1376', '保德县', '3', '92', '0'); INSERT INTO `district` VALUES ('1377', '偏关县', '3', '92', '0'); INSERT INTO `district` VALUES ('1378', '原平市', '3', '92', '0'); INSERT INTO `district` VALUES ('1379', '宁武县', '3', '92', '0'); INSERT INTO `district` VALUES ('1380', '定襄县', '3', '92', '0'); INSERT INTO `district` VALUES ('1381', '岢岚县', '3', '92', '0'); INSERT INTO `district` VALUES ('1382', '忻府区', '3', '92', '0'); INSERT INTO `district` VALUES ('1383', '河曲县', '3', '92', '0'); INSERT INTO `district` VALUES ('1384', '神池县', '3', '92', '0'); INSERT INTO `district` VALUES ('1385', '繁峙县', '3', '92', '0'); INSERT INTO `district` VALUES ('1386', '静乐县', '3', '92', '0'); INSERT INTO `district` VALUES ('1387', '乡宁县', '3', '93', '0'); INSERT INTO `district` VALUES ('1388', '侯马市', '3', '93', '0'); INSERT INTO `district` VALUES ('1389', '古县', '3', '93', '0'); INSERT INTO `district` VALUES ('1390', '吉县', '3', '93', '0'); INSERT INTO `district` VALUES ('1391', '大宁县', '3', '93', '0'); INSERT INTO `district` VALUES ('1392', '安泽县', '3', '93', '0'); INSERT INTO `district` VALUES ('1393', '尧都区', '3', '93', '0'); INSERT INTO `district` VALUES ('1394', '曲沃县', '3', '93', '0'); INSERT INTO `district` VALUES ('1395', '永和县', '3', '93', '0'); INSERT INTO `district` VALUES ('1396', '汾西县', '3', '93', '0'); INSERT INTO `district` VALUES ('1397', '洪洞县', '3', '93', '0'); INSERT INTO `district` VALUES ('1398', '浮山县', '3', '93', '0'); INSERT INTO `district` VALUES ('1399', '翼城县', '3', '93', '0'); INSERT INTO `district` VALUES ('1400', '蒲县', '3', '93', '0'); INSERT INTO `district` VALUES ('1401', '襄汾县', '3', '93', '0'); INSERT INTO `district` VALUES ('1402', '隰县', '3', '93', '0'); INSERT INTO `district` VALUES ('1403', '霍州市', '3', '93', '0'); INSERT INTO `district` VALUES ('1404', '中阳县', '3', '94', '0'); INSERT INTO `district` VALUES ('1405', '临县', '3', '94', '0'); INSERT INTO `district` VALUES ('1406', '交口县', '3', '94', '0'); INSERT INTO `district` VALUES ('1407', '交城县', '3', '94', '0'); INSERT INTO `district` VALUES ('1408', '兴县', '3', '94', '0'); INSERT INTO `district` VALUES ('1409', '孝义市', '3', '94', '0'); INSERT INTO `district` VALUES ('1410', '岚县', '3', '94', '0'); INSERT INTO `district` VALUES ('1411', '文水县', '3', '94', '0'); INSERT INTO `district` VALUES ('1412', '方山县', '3', '94', '0'); INSERT INTO `district` VALUES ('1413', '柳林县', '3', '94', '0'); INSERT INTO `district` VALUES ('1414', '汾阳市', '3', '94', '0'); INSERT INTO `district` VALUES ('1415', '石楼县', '3', '94', '0'); INSERT INTO `district` VALUES ('1416', '离石区', '3', '94', '0'); INSERT INTO `district` VALUES ('1417', '和林格尔县', '3', '95', '0'); INSERT INTO `district` VALUES ('1418', '回民区', '3', '95', '0'); INSERT INTO `district` VALUES ('1419', '土默特左旗', '3', '95', '0'); INSERT INTO `district` VALUES ('1420', '托克托县', '3', '95', '0'); INSERT INTO `district` VALUES ('1421', '新城区', '3', '95', '0'); INSERT INTO `district` VALUES ('1422', '武川县', '3', '95', '0'); INSERT INTO `district` VALUES ('1423', '清水河县', '3', '95', '0'); INSERT INTO `district` VALUES ('1424', '玉泉区', '3', '95', '0'); INSERT INTO `district` VALUES ('1425', '赛罕区', '3', '95', '0'); INSERT INTO `district` VALUES ('1426', '东河区', '3', '96', '0'); INSERT INTO `district` VALUES ('1427', '九原区', '3', '96', '0'); INSERT INTO `district` VALUES ('1428', '固阳县', '3', '96', '0'); INSERT INTO `district` VALUES ('1429', '土默特右旗', '3', '96', '0'); INSERT INTO `district` VALUES ('1430', '昆都仑区', '3', '96', '0'); INSERT INTO `district` VALUES ('1431', '白云矿区', '3', '96', '0'); INSERT INTO `district` VALUES ('1432', '石拐区', '3', '96', '0'); INSERT INTO `district` VALUES ('1433', '达尔罕茂明安联合旗', '3', '96', '0'); INSERT INTO `district` VALUES ('1434', '青山区', '3', '96', '0'); INSERT INTO `district` VALUES ('1435', '乌达区', '3', '97', '0'); INSERT INTO `district` VALUES ('1436', '海勃湾区', '3', '97', '0'); INSERT INTO `district` VALUES ('1437', '海南区', '3', '97', '0'); INSERT INTO `district` VALUES ('1438', '元宝山区', '3', '98', '0'); INSERT INTO `district` VALUES ('1439', '克什克腾旗', '3', '98', '0'); INSERT INTO `district` VALUES ('1440', '喀喇沁旗', '3', '98', '0'); INSERT INTO `district` VALUES ('1441', '宁城县', '3', '98', '0'); INSERT INTO `district` VALUES ('1442', '巴林右旗', '3', '98', '0'); INSERT INTO `district` VALUES ('1443', '巴林左旗', '3', '98', '0'); INSERT INTO `district` VALUES ('1444', '敖汉旗', '3', '98', '0'); INSERT INTO `district` VALUES ('1445', '松山区', '3', '98', '0'); INSERT INTO `district` VALUES ('1446', '林西县', '3', '98', '0'); INSERT INTO `district` VALUES ('1447', '红山区', '3', '98', '0'); INSERT INTO `district` VALUES ('1448', '翁牛特旗', '3', '98', '0'); INSERT INTO `district` VALUES ('1449', '阿鲁科尔沁旗', '3', '98', '0'); INSERT INTO `district` VALUES ('1450', '奈曼旗', '3', '99', '0'); INSERT INTO `district` VALUES ('1451', '库伦旗', '3', '99', '0'); INSERT INTO `district` VALUES ('1452', '开鲁县', '3', '99', '0'); INSERT INTO `district` VALUES ('1453', '扎鲁特旗', '3', '99', '0'); INSERT INTO `district` VALUES ('1454', '科尔沁区', '3', '99', '0'); INSERT INTO `district` VALUES ('1455', '科尔沁左翼中旗', '3', '99', '0'); INSERT INTO `district` VALUES ('1456', '科尔沁左翼后旗', '3', '99', '0'); INSERT INTO `district` VALUES ('1457', '霍林郭勒市', '3', '99', '0'); INSERT INTO `district` VALUES ('1458', '东胜区', '3', '100', '0'); INSERT INTO `district` VALUES ('1459', '乌审旗', '3', '100', '0'); INSERT INTO `district` VALUES ('1460', '伊金霍洛旗', '3', '100', '0'); INSERT INTO `district` VALUES ('1461', '准格尔旗', '3', '100', '0'); INSERT INTO `district` VALUES ('1462', '杭锦旗', '3', '100', '0'); INSERT INTO `district` VALUES ('1463', '达拉特旗', '3', '100', '0'); INSERT INTO `district` VALUES ('1464', '鄂东胜区', '3', '100', '0'); INSERT INTO `district` VALUES ('1465', '鄂托克前旗', '3', '100', '0'); INSERT INTO `district` VALUES ('1466', '鄂托克旗', '3', '100', '0'); INSERT INTO `district` VALUES ('1467', '扎兰屯市', '3', '101', '0'); INSERT INTO `district` VALUES ('1468', '新巴尔虎右旗', '3', '101', '0'); INSERT INTO `district` VALUES ('1469', '新巴尔虎左旗', '3', '101', '0'); INSERT INTO `district` VALUES ('1470', '根河市', '3', '101', '0'); INSERT INTO `district` VALUES ('1471', '海拉尔区', '3', '101', '0'); INSERT INTO `district` VALUES ('1472', '满洲里市', '3', '101', '0'); INSERT INTO `district` VALUES ('1473', '牙克石市', '3', '101', '0'); INSERT INTO `district` VALUES ('1474', '莫力达瓦达斡尔族自治旗', '3', '101', '0'); INSERT INTO `district` VALUES ('1475', '鄂伦春自治旗', '3', '101', '0'); INSERT INTO `district` VALUES ('1476', '鄂温克族自治旗', '3', '101', '0'); INSERT INTO `district` VALUES ('1477', '阿荣旗', '3', '101', '0'); INSERT INTO `district` VALUES ('1478', '陈巴尔虎旗', '3', '101', '0'); INSERT INTO `district` VALUES ('1479', '额尔古纳市', '3', '101', '0'); INSERT INTO `district` VALUES ('1480', '临河区', '3', '102', '0'); INSERT INTO `district` VALUES ('1481', '乌拉特中旗', '3', '102', '0'); INSERT INTO `district` VALUES ('1482', '乌拉特前旗', '3', '102', '0'); INSERT INTO `district` VALUES ('1483', '乌拉特后旗', '3', '102', '0'); INSERT INTO `district` VALUES ('1484', '五原县', '3', '102', '0'); INSERT INTO `district` VALUES ('1485', '杭锦后旗', '3', '102', '0'); INSERT INTO `district` VALUES ('1486', '磴口县', '3', '102', '0'); INSERT INTO `district` VALUES ('1487', '丰镇市', '3', '103', '0'); INSERT INTO `district` VALUES ('1488', '兴和县', '3', '103', '0'); INSERT INTO `district` VALUES ('1489', '凉城县', '3', '103', '0'); INSERT INTO `district` VALUES ('1490', '化德县', '3', '103', '0'); INSERT INTO `district` VALUES ('1491', '卓资县', '3', '103', '0'); INSERT INTO `district` VALUES ('1492', '商都县', '3', '103', '0'); INSERT INTO `district` VALUES ('1493', '四子王旗', '3', '103', '0'); INSERT INTO `district` VALUES ('1494', '察哈尔右翼中旗', '3', '103', '0'); INSERT INTO `district` VALUES ('1495', '察哈尔右翼前旗', '3', '103', '0'); INSERT INTO `district` VALUES ('1496', '察哈尔右翼后旗', '3', '103', '0'); INSERT INTO `district` VALUES ('1497', '集宁区', '3', '103', '0'); INSERT INTO `district` VALUES ('1498', '乌兰浩特市', '3', '104', '0'); INSERT INTO `district` VALUES ('1499', '扎赉特旗', '3', '104', '0'); INSERT INTO `district` VALUES ('1500', '科尔沁右翼中旗', '3', '104', '0'); INSERT INTO `district` VALUES ('1501', '科尔沁右翼前旗', '3', '104', '0'); INSERT INTO `district` VALUES ('1502', '突泉县', '3', '104', '0'); INSERT INTO `district` VALUES ('1503', '阿尔山市', '3', '104', '0'); INSERT INTO `district` VALUES ('1504', '东乌珠穆沁旗', '3', '105', '0'); INSERT INTO `district` VALUES ('1505', '二连浩特市', '3', '105', '0'); INSERT INTO `district` VALUES ('1506', '多伦县', '3', '105', '0'); INSERT INTO `district` VALUES ('1507', '太仆寺旗', '3', '105', '0'); INSERT INTO `district` VALUES ('1508', '正蓝旗', '3', '105', '0'); INSERT INTO `district` VALUES ('1509', '正镶白旗', '3', '105', '0'); INSERT INTO `district` VALUES ('1510', '苏尼特右旗', '3', '105', '0'); INSERT INTO `district` VALUES ('1511', '苏尼特左旗', '3', '105', '0'); INSERT INTO `district` VALUES ('1512', '西乌珠穆沁旗', '3', '105', '0'); INSERT INTO `district` VALUES ('1513', '锡林浩特市', '3', '105', '0'); INSERT INTO `district` VALUES ('1514', '镶黄旗', '3', '105', '0'); INSERT INTO `district` VALUES ('1515', '阿巴嘎旗', '3', '105', '0'); INSERT INTO `district` VALUES ('1516', '阿拉善右旗', '3', '106', '0'); INSERT INTO `district` VALUES ('1517', '阿拉善左旗', '3', '106', '0'); INSERT INTO `district` VALUES ('1518', '额济纳旗', '3', '106', '0'); INSERT INTO `district` VALUES ('1519', '东陵区', '3', '107', '0'); INSERT INTO `district` VALUES ('1520', '于洪区', '3', '107', '0'); INSERT INTO `district` VALUES ('1521', '和平区', '3', '107', '0'); INSERT INTO `district` VALUES ('1522', '大东区', '3', '107', '0'); INSERT INTO `district` VALUES ('1523', '康平县', '3', '107', '0'); INSERT INTO `district` VALUES ('1524', '新民市', '3', '107', '0'); INSERT INTO `district` VALUES ('1525', '沈北新区', '3', '107', '0'); INSERT INTO `district` VALUES ('1526', '沈河区', '3', '107', '0'); INSERT INTO `district` VALUES ('1527', '法库县', '3', '107', '0'); INSERT INTO `district` VALUES ('1528', '皇姑区', '3', '107', '0'); INSERT INTO `district` VALUES ('1529', '苏家屯区', '3', '107', '0'); INSERT INTO `district` VALUES ('1530', '辽中县', '3', '107', '0'); INSERT INTO `district` VALUES ('1531', '铁西区', '3', '107', '0'); INSERT INTO `district` VALUES ('1532', '中山区', '3', '108', '0'); INSERT INTO `district` VALUES ('1533', '庄河市', '3', '108', '0'); INSERT INTO `district` VALUES ('1534', '旅顺口区', '3', '108', '0'); INSERT INTO `district` VALUES ('1535', '普兰店市', '3', '108', '0'); INSERT INTO `district` VALUES ('1536', '沙河口区', '3', '108', '0'); INSERT INTO `district` VALUES ('1537', '瓦房店市', '3', '108', '0'); INSERT INTO `district` VALUES ('1538', '甘井子区', '3', '108', '0'); INSERT INTO `district` VALUES ('1539', '西岗区', '3', '108', '0'); INSERT INTO `district` VALUES ('1540', '金州区', '3', '108', '0'); INSERT INTO `district` VALUES ('1541', '长海县', '3', '108', '0'); INSERT INTO `district` VALUES ('1542', '千山区', '3', '109', '0'); INSERT INTO `district` VALUES ('1543', '台安县', '3', '109', '0'); INSERT INTO `district` VALUES ('1544', '岫岩满族自治县', '3', '109', '0'); INSERT INTO `district` VALUES ('1545', '海城市', '3', '109', '0'); INSERT INTO `district` VALUES ('1546', '立山区', '3', '109', '0'); INSERT INTO `district` VALUES ('1547', '铁东区', '3', '109', '0'); INSERT INTO `district` VALUES ('1548', '铁西区', '3', '109', '0'); INSERT INTO `district` VALUES ('1549', '东洲区', '3', '110', '0'); INSERT INTO `district` VALUES ('1550', '抚顺县', '3', '110', '0'); INSERT INTO `district` VALUES ('1551', '新宾满族自治县', '3', '110', '0'); INSERT INTO `district` VALUES ('1552', '新抚区', '3', '110', '0'); INSERT INTO `district` VALUES ('1553', '望花区', '3', '110', '0'); INSERT INTO `district` VALUES ('1554', '清原满族自治县', '3', '110', '0'); INSERT INTO `district` VALUES ('1555', '顺城区', '3', '110', '0'); INSERT INTO `district` VALUES ('1556', '南芬区', '3', '111', '0'); INSERT INTO `district` VALUES ('1557', '平山区', '3', '111', '0'); INSERT INTO `district` VALUES ('1558', '明山区', '3', '111', '0'); INSERT INTO `district` VALUES ('1559', '本溪满族自治县', '3', '111', '0'); INSERT INTO `district` VALUES ('1560', '桓仁满族自治县', '3', '111', '0'); INSERT INTO `district` VALUES ('1561', '溪湖区', '3', '111', '0'); INSERT INTO `district` VALUES ('1562', '东港市', '3', '112', '0'); INSERT INTO `district` VALUES ('1563', '元宝区', '3', '112', '0'); INSERT INTO `district` VALUES ('1564', '凤城市', '3', '112', '0'); INSERT INTO `district` VALUES ('1565', '宽甸满族自治县', '3', '112', '0'); INSERT INTO `district` VALUES ('1566', '振兴区', '3', '112', '0'); INSERT INTO `district` VALUES ('1567', '振安区', '3', '112', '0'); INSERT INTO `district` VALUES ('1568', '义县', '3', '113', '0'); INSERT INTO `district` VALUES ('1569', '凌河区', '3', '113', '0'); INSERT INTO `district` VALUES ('1570', '凌海市', '3', '113', '0'); INSERT INTO `district` VALUES ('1571', '北镇市', '3', '113', '0'); INSERT INTO `district` VALUES ('1572', '古塔区', '3', '113', '0'); INSERT INTO `district` VALUES ('1573', '太和区', '3', '113', '0'); INSERT INTO `district` VALUES ('1574', '黑山县', '3', '113', '0'); INSERT INTO `district` VALUES ('1575', '大石桥市', '3', '114', '0'); INSERT INTO `district` VALUES ('1576', '盖州市', '3', '114', '0'); INSERT INTO `district` VALUES ('1577', '站前区', '3', '114', '0'); INSERT INTO `district` VALUES ('1578', '老边区', '3', '114', '0'); INSERT INTO `district` VALUES ('1579', '西市区', '3', '114', '0'); INSERT INTO `district` VALUES ('1580', '鲅鱼圈区', '3', '114', '0'); INSERT INTO `district` VALUES ('1581', '太平区', '3', '115', '0'); INSERT INTO `district` VALUES ('1582', '彰武县', '3', '115', '0'); INSERT INTO `district` VALUES ('1583', '新邱区', '3', '115', '0'); INSERT INTO `district` VALUES ('1584', '海州区', '3', '115', '0'); INSERT INTO `district` VALUES ('1585', '清河门区', '3', '115', '0'); INSERT INTO `district` VALUES ('1586', '细河区', '3', '115', '0'); INSERT INTO `district` VALUES ('1587', '蒙古族自治县', '3', '115', '0'); INSERT INTO `district` VALUES ('1588', '太子河区', '3', '116', '0'); INSERT INTO `district` VALUES ('1589', '宏伟区', '3', '116', '0'); INSERT INTO `district` VALUES ('1590', '弓长岭区', '3', '116', '0'); INSERT INTO `district` VALUES ('1591', '文圣区', '3', '116', '0'); INSERT INTO `district` VALUES ('1592', '灯塔市', '3', '116', '0'); INSERT INTO `district` VALUES ('1593', '白塔区', '3', '116', '0'); INSERT INTO `district` VALUES ('1594', '辽阳县', '3', '116', '0'); INSERT INTO `district` VALUES ('1595', '兴隆台区', '3', '117', '0'); INSERT INTO `district` VALUES ('1596', '双台子区', '3', '117', '0'); INSERT INTO `district` VALUES ('1597', '大洼县', '3', '117', '0'); INSERT INTO `district` VALUES ('1598', '盘山县', '3', '117', '0'); INSERT INTO `district` VALUES ('1599', '开原市', '3', '118', '0'); INSERT INTO `district` VALUES ('1600', '昌图县', '3', '118', '0'); INSERT INTO `district` VALUES ('1601', '清河区', '3', '118', '0'); INSERT INTO `district` VALUES ('1602', '西丰县', '3', '118', '0'); INSERT INTO `district` VALUES ('1603', '调兵山市', '3', '118', '0'); INSERT INTO `district` VALUES ('1604', '铁岭县', '3', '118', '0'); INSERT INTO `district` VALUES ('1605', '银州区', '3', '118', '0'); INSERT INTO `district` VALUES ('1606', '凌源市', '3', '119', '0'); INSERT INTO `district` VALUES ('1607', '北票市', '3', '119', '0'); INSERT INTO `district` VALUES ('1608', '双塔区', '3', '119', '0'); INSERT INTO `district` VALUES ('1609', '喀喇沁左翼蒙古族自治县', '3', '119', '0'); INSERT INTO `district` VALUES ('1610', '建平县', '3', '119', '0'); INSERT INTO `district` VALUES ('1611', '朝阳县', '3', '119', '0'); INSERT INTO `district` VALUES ('1612', '龙城区', '3', '119', '0'); INSERT INTO `district` VALUES ('1613', '兴城市', '3', '120', '0'); INSERT INTO `district` VALUES ('1614', '南票区', '3', '120', '0'); INSERT INTO `district` VALUES ('1615', '建昌县', '3', '120', '0'); INSERT INTO `district` VALUES ('1616', '绥中县', '3', '120', '0'); INSERT INTO `district` VALUES ('1617', '连山区', '3', '120', '0'); INSERT INTO `district` VALUES ('1618', '龙港区', '3', '120', '0'); INSERT INTO `district` VALUES ('1619', '九台市', '3', '121', '0'); INSERT INTO `district` VALUES ('1620', '二道区', '3', '121', '0'); INSERT INTO `district` VALUES ('1621', '农安县', '3', '121', '0'); INSERT INTO `district` VALUES ('1622', '南关区', '3', '121', '0'); INSERT INTO `district` VALUES ('1623', '双阳区', '3', '121', '0'); INSERT INTO `district` VALUES ('1624', '宽城区', '3', '121', '0'); INSERT INTO `district` VALUES ('1625', '德惠市', '3', '121', '0'); INSERT INTO `district` VALUES ('1626', '朝阳区', '3', '121', '0'); INSERT INTO `district` VALUES ('1627', '榆树市', '3', '121', '0'); INSERT INTO `district` VALUES ('1628', '绿园区', '3', '121', '0'); INSERT INTO `district` VALUES ('1629', '丰满区', '3', '122', '0'); INSERT INTO `district` VALUES ('1630', '昌邑区', '3', '122', '0'); INSERT INTO `district` VALUES ('1631', '桦甸市', '3', '122', '0'); INSERT INTO `district` VALUES ('1632', '永吉县', '3', '122', '0'); INSERT INTO `district` VALUES ('1633', '磐石市', '3', '122', '0'); INSERT INTO `district` VALUES ('1634', '舒兰市', '3', '122', '0'); INSERT INTO `district` VALUES ('1635', '船营区', '3', '122', '0'); INSERT INTO `district` VALUES ('1636', '蛟河市', '3', '122', '0'); INSERT INTO `district` VALUES ('1637', '龙潭区', '3', '122', '0'); INSERT INTO `district` VALUES ('1638', '伊通满族自治县', '3', '123', '0'); INSERT INTO `district` VALUES ('1639', '公主岭市', '3', '123', '0'); INSERT INTO `district` VALUES ('1640', '双辽市', '3', '123', '0'); INSERT INTO `district` VALUES ('1641', '梨树县', '3', '123', '0'); INSERT INTO `district` VALUES ('1642', '铁东区', '3', '123', '0'); INSERT INTO `district` VALUES ('1643', '铁西区', '3', '123', '0'); INSERT INTO `district` VALUES ('1644', '东丰县', '3', '124', '0'); INSERT INTO `district` VALUES ('1645', '东辽县', '3', '124', '0'); INSERT INTO `district` VALUES ('1646', '西安区', '3', '124', '0'); INSERT INTO `district` VALUES ('1647', '龙山区', '3', '124', '0'); INSERT INTO `district` VALUES ('1648', '东昌区', '3', '125', '0'); INSERT INTO `district` VALUES ('1649', '二道江区', '3', '125', '0'); INSERT INTO `district` VALUES ('1650', '柳河县', '3', '125', '0'); INSERT INTO `district` VALUES ('1651', '梅河口市', '3', '125', '0'); INSERT INTO `district` VALUES ('1652', '辉南县', '3', '125', '0'); INSERT INTO `district` VALUES ('1653', '通化县', '3', '125', '0'); INSERT INTO `district` VALUES ('1654', '集安市', '3', '125', '0'); INSERT INTO `district` VALUES ('1655', '临江市', '3', '126', '0'); INSERT INTO `district` VALUES ('1656', '八道江区', '3', '126', '0'); INSERT INTO `district` VALUES ('1657', '抚松县', '3', '126', '0'); INSERT INTO `district` VALUES ('1658', '江源区', '3', '126', '0'); INSERT INTO `district` VALUES ('1659', '长白朝鲜族自治县', '3', '126', '0'); INSERT INTO `district` VALUES ('1660', '靖宇县', '3', '126', '0'); INSERT INTO `district` VALUES ('1661', '干安县', '3', '127', '0'); INSERT INTO `district` VALUES ('1662', '前郭尔罗斯蒙古族自治县', '3', '127', '0'); INSERT INTO `district` VALUES ('1663', '宁江区', '3', '127', '0'); INSERT INTO `district` VALUES ('1664', '扶余县', '3', '127', '0'); INSERT INTO `district` VALUES ('1665', '长岭县', '3', '127', '0'); INSERT INTO `district` VALUES ('1666', '大安市', '3', '128', '0'); INSERT INTO `district` VALUES ('1667', '洮北区', '3', '128', '0'); INSERT INTO `district` VALUES ('1668', '洮南市', '3', '128', '0'); INSERT INTO `district` VALUES ('1669', '通榆县', '3', '128', '0'); INSERT INTO `district` VALUES ('1670', '镇赉县', '3', '128', '0'); INSERT INTO `district` VALUES ('1671', '和龙市', '3', '129', '0'); INSERT INTO `district` VALUES ('1672', '图们市', '3', '129', '0'); INSERT INTO `district` VALUES ('1673', '安图县', '3', '129', '0'); INSERT INTO `district` VALUES ('1674', '延吉市', '3', '129', '0'); INSERT INTO `district` VALUES ('1675', '敦化市', '3', '129', '0'); INSERT INTO `district` VALUES ('1676', '汪清县', '3', '129', '0'); INSERT INTO `district` VALUES ('1677', '珲春市', '3', '129', '0'); INSERT INTO `district` VALUES ('1678', '龙井市', '3', '129', '0'); INSERT INTO `district` VALUES ('1679', '五常市', '3', '130', '0'); INSERT INTO `district` VALUES ('1680', '依兰县', '3', '130', '0'); INSERT INTO `district` VALUES ('1681', '南岗区', '3', '130', '0'); INSERT INTO `district` VALUES ('1682', '双城市', '3', '130', '0'); INSERT INTO `district` VALUES ('1683', '呼兰区', '3', '130', '0'); INSERT INTO `district` VALUES ('1684', '哈尔滨市道里区', '3', '130', '0'); INSERT INTO `district` VALUES ('1685', '宾县', '3', '130', '0'); INSERT INTO `district` VALUES ('1686', '尚志市', '3', '130', '0'); INSERT INTO `district` VALUES ('1687', '巴彦县', '3', '130', '0'); INSERT INTO `district` VALUES ('1688', '平房区', '3', '130', '0'); INSERT INTO `district` VALUES ('1689', '延寿县', '3', '130', '0'); INSERT INTO `district` VALUES ('1690', '方正县', '3', '130', '0'); INSERT INTO `district` VALUES ('1691', '木兰县', '3', '130', '0'); INSERT INTO `district` VALUES ('1692', '松北区', '3', '130', '0'); INSERT INTO `district` VALUES ('1693', '通河县', '3', '130', '0'); INSERT INTO `district` VALUES ('1694', '道外区', '3', '130', '0'); INSERT INTO `district` VALUES ('1695', '阿城区', '3', '130', '0'); INSERT INTO `district` VALUES ('1696', '香坊区', '3', '130', '0'); INSERT INTO `district` VALUES ('1697', '依安县', '3', '131', '0'); INSERT INTO `district` VALUES ('1698', '克东县', '3', '131', '0'); INSERT INTO `district` VALUES ('1699', '克山县', '3', '131', '0'); INSERT INTO `district` VALUES ('1700', '富拉尔基区', '3', '131', '0'); INSERT INTO `district` VALUES ('1701', '富裕县', '3', '131', '0'); INSERT INTO `district` VALUES ('1702', '建华区', '3', '131', '0'); INSERT INTO `district` VALUES ('1703', '拜泉县', '3', '131', '0'); INSERT INTO `district` VALUES ('1704', '昂昂溪区', '3', '131', '0'); INSERT INTO `district` VALUES ('1705', '梅里斯达斡尔族区', '3', '131', '0'); INSERT INTO `district` VALUES ('1706', '泰来县', '3', '131', '0'); INSERT INTO `district` VALUES ('1707', '甘南县', '3', '131', '0'); INSERT INTO `district` VALUES ('1708', '碾子山区', '3', '131', '0'); INSERT INTO `district` VALUES ('1709', '讷河市', '3', '131', '0'); INSERT INTO `district` VALUES ('1710', '铁锋区', '3', '131', '0'); INSERT INTO `district` VALUES ('1711', '龙江县', '3', '131', '0'); INSERT INTO `district` VALUES ('1712', '龙沙区', '3', '131', '0'); INSERT INTO `district` VALUES ('1713', '城子河区', '3', '132', '0'); INSERT INTO `district` VALUES ('1714', '密山市', '3', '132', '0'); INSERT INTO `district` VALUES ('1715', '恒山区', '3', '132', '0'); INSERT INTO `district` VALUES ('1716', '梨树区', '3', '132', '0'); INSERT INTO `district` VALUES ('1717', '滴道区', '3', '132', '0'); INSERT INTO `district` VALUES ('1718', '虎林市', '3', '132', '0'); INSERT INTO `district` VALUES ('1719', '鸡东县', '3', '132', '0'); INSERT INTO `district` VALUES ('1720', '鸡冠区', '3', '132', '0'); INSERT INTO `district` VALUES ('1721', '麻山区', '3', '132', '0'); INSERT INTO `district` VALUES ('1722', '东山区', '3', '133', '0'); INSERT INTO `district` VALUES ('1723', '兴安区', '3', '133', '0'); INSERT INTO `district` VALUES ('1724', '兴山区', '3', '133', '0'); INSERT INTO `district` VALUES ('1725', '南山区', '3', '133', '0'); INSERT INTO `district` VALUES ('1726', '向阳区', '3', '133', '0'); INSERT INTO `district` VALUES ('1727', '工农区', '3', '133', '0'); INSERT INTO `district` VALUES ('1728', '绥滨县', '3', '133', '0'); INSERT INTO `district` VALUES ('1729', '萝北县', '3', '133', '0'); INSERT INTO `district` VALUES ('1730', '友谊县', '3', '134', '0'); INSERT INTO `district` VALUES ('1731', '四方台区', '3', '134', '0'); INSERT INTO `district` VALUES ('1732', '宝山区', '3', '134', '0'); INSERT INTO `district` VALUES ('1733', '宝清县', '3', '134', '0'); INSERT INTO `district` VALUES ('1734', '尖山区', '3', '134', '0'); INSERT INTO `district` VALUES ('1735', '岭东区', '3', '134', '0'); INSERT INTO `district` VALUES ('1736', '集贤县', '3', '134', '0'); INSERT INTO `district` VALUES ('1737', '饶河县', '3', '134', '0'); INSERT INTO `district` VALUES ('1738', '大同区', '3', '135', '0'); INSERT INTO `district` VALUES ('1739', '杜尔伯特蒙古族自治县', '3', '135', '0'); INSERT INTO `district` VALUES ('1740', '林甸县', '3', '135', '0'); INSERT INTO `district` VALUES ('1741', '红岗区', '3', '135', '0'); INSERT INTO `district` VALUES ('1742', '肇州县', '3', '135', '0'); INSERT INTO `district` VALUES ('1743', '肇源县', '3', '135', '0'); INSERT INTO `district` VALUES ('1744', '胡路区', '3', '135', '0'); INSERT INTO `district` VALUES ('1745', '萨尔图区', '3', '135', '0'); INSERT INTO `district` VALUES ('1746', '龙凤区', '3', '135', '0'); INSERT INTO `district` VALUES ('1747', '上甘岭区', '3', '136', '0'); INSERT INTO `district` VALUES ('1748', '乌伊岭区', '3', '136', '0'); INSERT INTO `district` VALUES ('1749', '乌马河区', '3', '136', '0'); INSERT INTO `district` VALUES ('1750', '五营区', '3', '136', '0'); INSERT INTO `district` VALUES ('1751', '伊春区', '3', '136', '0'); INSERT INTO `district` VALUES ('1752', '南岔区', '3', '136', '0'); INSERT INTO `district` VALUES ('1753', '友好区', '3', '136', '0'); INSERT INTO `district` VALUES ('1754', '嘉荫县', '3', '136', '0'); INSERT INTO `district` VALUES ('1755', '带岭区', '3', '136', '0'); INSERT INTO `district` VALUES ('1756', '新青区', '3', '136', '0'); INSERT INTO `district` VALUES ('1757', '汤旺河区', '3', '136', '0'); INSERT INTO `district` VALUES ('1758', '红星区', '3', '136', '0'); INSERT INTO `district` VALUES ('1759', '美溪区', '3', '136', '0'); INSERT INTO `district` VALUES ('1760', '翠峦区', '3', '136', '0'); INSERT INTO `district` VALUES ('1761', '西林区', '3', '136', '0'); INSERT INTO `district` VALUES ('1762', '金山屯区', '3', '136', '0'); INSERT INTO `district` VALUES ('1763', '铁力市', '3', '136', '0'); INSERT INTO `district` VALUES ('1764', '东风区', '3', '137', '0'); INSERT INTO `district` VALUES ('1765', '前进区', '3', '137', '0'); INSERT INTO `district` VALUES ('1766', '同江市', '3', '137', '0'); INSERT INTO `district` VALUES ('1767', '向阳区', '3', '137', '0'); INSERT INTO `district` VALUES ('1768', '富锦市', '3', '137', '0'); INSERT INTO `district` VALUES ('1769', '抚远县', '3', '137', '0'); INSERT INTO `district` VALUES ('1770', '桦南县', '3', '137', '0'); INSERT INTO `district` VALUES ('1771', '桦川县', '3', '137', '0'); INSERT INTO `district` VALUES ('1772', '汤原县', '3', '137', '0'); INSERT INTO `district` VALUES ('1773', '郊区', '3', '137', '0'); INSERT INTO `district` VALUES ('1774', '勃利县', '3', '138', '0'); INSERT INTO `district` VALUES ('1775', '新兴区', '3', '138', '0'); INSERT INTO `district` VALUES ('1776', '桃山区', '3', '138', '0'); INSERT INTO `district` VALUES ('1777', '茄子河区', '3', '138', '0'); INSERT INTO `district` VALUES ('1778', '东宁县', '3', '139', '0'); INSERT INTO `district` VALUES ('1779', '东安区', '3', '139', '0'); INSERT INTO `district` VALUES ('1780', '宁安市', '3', '139', '0'); INSERT INTO `district` VALUES ('1781', '林口县', '3', '139', '0'); INSERT INTO `district` VALUES ('1782', '海林市', '3', '139', '0'); INSERT INTO `district` VALUES ('1783', '爱民区', '3', '139', '0'); INSERT INTO `district` VALUES ('1784', '穆棱市', '3', '139', '0'); INSERT INTO `district` VALUES ('1785', '绥芬河市', '3', '139', '0'); INSERT INTO `district` VALUES ('1786', '西安区', '3', '139', '0'); INSERT INTO `district` VALUES ('1787', '阳明区', '3', '139', '0'); INSERT INTO `district` VALUES ('1788', '五大连池市', '3', '140', '0'); INSERT INTO `district` VALUES ('1789', '北安市', '3', '140', '0'); INSERT INTO `district` VALUES ('1790', '嫩江县', '3', '140', '0'); INSERT INTO `district` VALUES ('1791', '孙吴县', '3', '140', '0'); INSERT INTO `district` VALUES ('1792', '爱辉区', '3', '140', '0'); INSERT INTO `district` VALUES ('1793', '车逊克县', '3', '140', '0'); INSERT INTO `district` VALUES ('1794', '逊克县', '3', '140', '0'); INSERT INTO `district` VALUES ('1795', '兰西县', '3', '141', '0'); INSERT INTO `district` VALUES ('1796', '安达市', '3', '141', '0'); INSERT INTO `district` VALUES ('1797', '庆安县', '3', '141', '0'); INSERT INTO `district` VALUES ('1798', '明水县', '3', '141', '0'); INSERT INTO `district` VALUES ('1799', '望奎县', '3', '141', '0'); INSERT INTO `district` VALUES ('1800', '海伦市', '3', '141', '0'); INSERT INTO `district` VALUES ('1801', '绥化市北林区', '3', '141', '0'); INSERT INTO `district` VALUES ('1802', '绥棱县', '3', '141', '0'); INSERT INTO `district` VALUES ('1803', '肇东市', '3', '141', '0'); INSERT INTO `district` VALUES ('1804', '青冈县', '3', '141', '0'); INSERT INTO `district` VALUES ('1805', '呼玛县', '3', '142', '0'); INSERT INTO `district` VALUES ('1806', '塔河县', '3', '142', '0'); INSERT INTO `district` VALUES ('1807', '大兴安岭地区加格达奇区', '3', '142', '0'); INSERT INTO `district` VALUES ('1808', '大兴安岭地区呼中区', '3', '142', '0'); INSERT INTO `district` VALUES ('1809', '大兴安岭地区新林区', '3', '142', '0'); INSERT INTO `district` VALUES ('1810', '大兴安岭地区松岭区', '3', '142', '0'); INSERT INTO `district` VALUES ('1811', '漠河县', '3', '142', '0'); INSERT INTO `district` VALUES ('2027', '下关区', '3', '162', '0'); INSERT INTO `district` VALUES ('2028', '六合区', '3', '162', '0'); INSERT INTO `district` VALUES ('2029', '建邺区', '3', '162', '0'); INSERT INTO `district` VALUES ('2030', '栖霞区', '3', '162', '0'); INSERT INTO `district` VALUES ('2031', '江宁区', '3', '162', '0'); INSERT INTO `district` VALUES ('2032', '浦口区', '3', '162', '0'); INSERT INTO `district` VALUES ('2033', '溧水县', '3', '162', '0'); INSERT INTO `district` VALUES ('2034', '玄武区', '3', '162', '0'); INSERT INTO `district` VALUES ('2035', '白下区', '3', '162', '0'); INSERT INTO `district` VALUES ('2036', '秦淮区', '3', '162', '0'); INSERT INTO `district` VALUES ('2037', '雨花台区', '3', '162', '0'); INSERT INTO `district` VALUES ('2038', '高淳县', '3', '162', '0'); INSERT INTO `district` VALUES ('2039', '鼓楼区', '3', '162', '0'); INSERT INTO `district` VALUES ('2040', '北塘区', '3', '163', '0'); INSERT INTO `district` VALUES ('2041', '南长区', '3', '163', '0'); INSERT INTO `district` VALUES ('2042', '宜兴市', '3', '163', '0'); INSERT INTO `district` VALUES ('2043', '崇安区', '3', '163', '0'); INSERT INTO `district` VALUES ('2044', '惠山区', '3', '163', '0'); INSERT INTO `district` VALUES ('2045', '江阴市', '3', '163', '0'); INSERT INTO `district` VALUES ('2046', '滨湖区', '3', '163', '0'); INSERT INTO `district` VALUES ('2047', '锡山区', '3', '163', '0'); INSERT INTO `district` VALUES ('2048', '丰县', '3', '164', '0'); INSERT INTO `district` VALUES ('2049', '九里区', '3', '164', '0'); INSERT INTO `district` VALUES ('2050', '云龙区', '3', '164', '0'); INSERT INTO `district` VALUES ('2051', '新沂市', '3', '164', '0'); INSERT INTO `district` VALUES ('2052', '沛县', '3', '164', '0'); INSERT INTO `district` VALUES ('2053', '泉山区', '3', '164', '0'); INSERT INTO `district` VALUES ('2054', '睢宁县', '3', '164', '0'); INSERT INTO `district` VALUES ('2055', '贾汪区', '3', '164', '0'); INSERT INTO `district` VALUES ('2056', '邳州市', '3', '164', '0'); INSERT INTO `district` VALUES ('2057', '铜山县', '3', '164', '0'); INSERT INTO `district` VALUES ('2058', '鼓楼区', '3', '164', '0'); INSERT INTO `district` VALUES ('2059', '天宁区', '3', '165', '0'); INSERT INTO `district` VALUES ('2060', '戚墅堰区', '3', '165', '0'); INSERT INTO `district` VALUES ('2061', '新北区', '3', '165', '0'); INSERT INTO `district` VALUES ('2062', '武进区', '3', '165', '0'); INSERT INTO `district` VALUES ('2063', '溧阳市', '3', '165', '0'); INSERT INTO `district` VALUES ('2064', '金坛市', '3', '165', '0'); INSERT INTO `district` VALUES ('2065', '钟楼区', '3', '165', '0'); INSERT INTO `district` VALUES ('2066', '吴中区', '3', '166', '0'); INSERT INTO `district` VALUES ('2067', '吴江市', '3', '166', '0'); INSERT INTO `district` VALUES ('2068', '太仓市', '3', '166', '0'); INSERT INTO `district` VALUES ('2069', '常熟市', '3', '166', '0'); INSERT INTO `district` VALUES ('2070', '平江区', '3', '166', '0'); INSERT INTO `district` VALUES ('2071', '张家港市', '3', '166', '0'); INSERT INTO `district` VALUES ('2072', '昆山市', '3', '166', '0'); INSERT INTO `district` VALUES ('2073', '沧浪区', '3', '166', '0'); INSERT INTO `district` VALUES ('2074', '相城区', '3', '166', '0'); INSERT INTO `district` VALUES ('2075', '苏州工业园区', '3', '166', '0'); INSERT INTO `district` VALUES ('2076', '虎丘区', '3', '166', '0'); INSERT INTO `district` VALUES ('2077', '金阊区', '3', '166', '0'); INSERT INTO `district` VALUES ('2078', '启东市', '3', '167', '0'); INSERT INTO `district` VALUES ('2079', '如东县', '3', '167', '0'); INSERT INTO `district` VALUES ('2080', '如皋市', '3', '167', '0'); INSERT INTO `district` VALUES ('2081', '崇川区', '3', '167', '0'); INSERT INTO `district` VALUES ('2082', '海安县', '3', '167', '0'); INSERT INTO `district` VALUES ('2083', '海门市', '3', '167', '0'); INSERT INTO `district` VALUES ('2084', '港闸区', '3', '167', '0'); INSERT INTO `district` VALUES ('2085', '通州市', '3', '167', '0'); INSERT INTO `district` VALUES ('2086', '东海县', '3', '168', '0'); INSERT INTO `district` VALUES ('2087', '新浦区', '3', '168', '0'); INSERT INTO `district` VALUES ('2088', '海州区', '3', '168', '0'); INSERT INTO `district` VALUES ('2089', '灌云县', '3', '168', '0'); INSERT INTO `district` VALUES ('2090', '灌南县', '3', '168', '0'); INSERT INTO `district` VALUES ('2091', '赣榆县', '3', '168', '0'); INSERT INTO `district` VALUES ('2092', '连云区', '3', '168', '0'); INSERT INTO `district` VALUES ('2093', '楚州区', '3', '169', '0'); INSERT INTO `district` VALUES ('2094', '洪泽县', '3', '169', '0'); INSERT INTO `district` VALUES ('2095', '涟水县', '3', '169', '0'); INSERT INTO `district` VALUES ('2096', '淮阴区', '3', '169', '0'); INSERT INTO `district` VALUES ('2097', '清河区', '3', '169', '0'); INSERT INTO `district` VALUES ('2098', '清浦区', '3', '169', '0'); INSERT INTO `district` VALUES ('2099', '盱眙县', '3', '169', '0'); INSERT INTO `district` VALUES ('2100', '金湖县', '3', '169', '0'); INSERT INTO `district` VALUES ('2101', '东台市', '3', '170', '0'); INSERT INTO `district` VALUES ('2102', '亭湖区', '3', '170', '0'); INSERT INTO `district` VALUES ('2103', '响水县', '3', '170', '0'); INSERT INTO `district` VALUES ('2104', '大丰市', '3', '170', '0'); INSERT INTO `district` VALUES ('2105', '射阳县', '3', '170', '0'); INSERT INTO `district` VALUES ('2106', '建湖县', '3', '170', '0'); INSERT INTO `district` VALUES ('2107', '滨海县', '3', '170', '0'); INSERT INTO `district` VALUES ('2108', '盐都区', '3', '170', '0'); INSERT INTO `district` VALUES ('2109', '阜宁县', '3', '170', '0'); INSERT INTO `district` VALUES ('2110', '仪征市', '3', '171', '0'); INSERT INTO `district` VALUES ('2111', '宝应县', '3', '171', '0'); INSERT INTO `district` VALUES ('2112', '广陵区', '3', '171', '0'); INSERT INTO `district` VALUES ('2113', '江都市', '3', '171', '0'); INSERT INTO `district` VALUES ('2114', '维扬区', '3', '171', '0'); INSERT INTO `district` VALUES ('2115', '邗江区', '3', '171', '0'); INSERT INTO `district` VALUES ('2116', '高邮市', '3', '171', '0'); INSERT INTO `district` VALUES ('2117', '丹徒区', '3', '172', '0'); INSERT INTO `district` VALUES ('2118', '丹阳市', '3', '172', '0'); INSERT INTO `district` VALUES ('2119', '京口区', '3', '172', '0'); INSERT INTO `district` VALUES ('2120', '句容市', '3', '172', '0'); INSERT INTO `district` VALUES ('2121', '扬中市', '3', '172', '0'); INSERT INTO `district` VALUES ('2122', '润州区', '3', '172', '0'); INSERT INTO `district` VALUES ('2123', '兴化市', '3', '173', '0'); INSERT INTO `district` VALUES ('2124', '姜堰市', '3', '173', '0'); INSERT INTO `district` VALUES ('2125', '泰兴市', '3', '173', '0'); INSERT INTO `district` VALUES ('2126', '海陵区', '3', '173', '0'); INSERT INTO `district` VALUES ('2127', '靖江市', '3', '173', '0'); INSERT INTO `district` VALUES ('2128', '高港区', '3', '173', '0'); INSERT INTO `district` VALUES ('2129', '宿城区', '3', '174', '0'); INSERT INTO `district` VALUES ('2130', '宿豫区', '3', '174', '0'); INSERT INTO `district` VALUES ('2131', '沭阳县', '3', '174', '0'); INSERT INTO `district` VALUES ('2132', '泗洪县', '3', '174', '0'); INSERT INTO `district` VALUES ('2133', '泗阳县', '3', '174', '0'); INSERT INTO `district` VALUES ('2134', '上城区', '3', '175', '0'); INSERT INTO `district` VALUES ('2135', '下城区', '3', '175', '0'); INSERT INTO `district` VALUES ('2136', '临安市', '3', '175', '0'); INSERT INTO `district` VALUES ('2137', '余杭区', '3', '175', '0'); INSERT INTO `district` VALUES ('2138', '富阳市', '3', '175', '0'); INSERT INTO `district` VALUES ('2139', '建德市', '3', '175', '0'); INSERT INTO `district` VALUES ('2140', '拱墅区', '3', '175', '0'); INSERT INTO `district` VALUES ('2141', '桐庐县', '3', '175', '0'); INSERT INTO `district` VALUES ('2142', '江干区', '3', '175', '0'); INSERT INTO `district` VALUES ('2143', '淳安县', '3', '175', '0'); INSERT INTO `district` VALUES ('2144', '滨江区', '3', '175', '0'); INSERT INTO `district` VALUES ('2145', '萧山区', '3', '175', '0'); INSERT INTO `district` VALUES ('2146', '西湖区', '3', '175', '0'); INSERT INTO `district` VALUES ('2147', '余姚市', '3', '176', '0'); INSERT INTO `district` VALUES ('2148', '北仑区', '3', '176', '0'); INSERT INTO `district` VALUES ('2149', '奉化市', '3', '176', '0'); INSERT INTO `district` VALUES ('2150', '宁海县', '3', '176', '0'); INSERT INTO `district` VALUES ('2151', '慈溪市', '3', '176', '0'); INSERT INTO `district` VALUES ('2152', '江东区', '3', '176', '0'); INSERT INTO `district` VALUES ('2153', '江北区', '3', '176', '0'); INSERT INTO `district` VALUES ('2154', '海曙区', '3', '176', '0'); INSERT INTO `district` VALUES ('2155', '象山县', '3', '176', '0'); INSERT INTO `district` VALUES ('2156', '鄞州区', '3', '176', '0'); INSERT INTO `district` VALUES ('2157', '镇海区', '3', '176', '0'); INSERT INTO `district` VALUES ('2158', '乐清市', '3', '177', '0'); INSERT INTO `district` VALUES ('2159', '平阳县', '3', '177', '0'); INSERT INTO `district` VALUES ('2160', '文成县', '3', '177', '0'); INSERT INTO `district` VALUES ('2161', '永嘉县', '3', '177', '0'); INSERT INTO `district` VALUES ('2162', '泰顺县', '3', '177', '0'); INSERT INTO `district` VALUES ('2163', '洞头县', '3', '177', '0'); INSERT INTO `district` VALUES ('2164', '瑞安市', '3', '177', '0'); INSERT INTO `district` VALUES ('2165', '瓯海区', '3', '177', '0'); INSERT INTO `district` VALUES ('2166', '苍南县', '3', '177', '0'); INSERT INTO `district` VALUES ('2167', '鹿城区', '3', '177', '0'); INSERT INTO `district` VALUES ('2168', '龙湾区', '3', '177', '0'); INSERT INTO `district` VALUES ('2169', '南湖区', '3', '178', '0'); INSERT INTO `district` VALUES ('2170', '嘉善县', '3', '178', '0'); INSERT INTO `district` VALUES ('2171', '平湖市', '3', '178', '0'); INSERT INTO `district` VALUES ('2172', '桐乡市', '3', '178', '0'); INSERT INTO `district` VALUES ('2173', '海宁市', '3', '178', '0'); INSERT INTO `district` VALUES ('2174', '海盐县', '3', '178', '0'); INSERT INTO `district` VALUES ('2175', '秀洲区', '3', '178', '0'); INSERT INTO `district` VALUES ('2176', '南浔区', '3', '179', '0'); INSERT INTO `district` VALUES ('2177', '吴兴区', '3', '179', '0'); INSERT INTO `district` VALUES ('2178', '安吉县', '3', '179', '0'); INSERT INTO `district` VALUES ('2179', '德清县', '3', '179', '0'); INSERT INTO `district` VALUES ('2180', '长兴县', '3', '179', '0'); INSERT INTO `district` VALUES ('2181', '上虞市', '3', '180', '0'); INSERT INTO `district` VALUES ('2182', '嵊州市', '3', '180', '0'); INSERT INTO `district` VALUES ('2183', '新昌县', '3', '180', '0'); INSERT INTO `district` VALUES ('2184', '绍兴县', '3', '180', '0'); INSERT INTO `district` VALUES ('2185', '诸暨市', '3', '180', '0'); INSERT INTO `district` VALUES ('2186', '越城区', '3', '180', '0'); INSERT INTO `district` VALUES ('2187', '定海区', '3', '181', '0'); INSERT INTO `district` VALUES ('2188', '岱山县', '3', '181', '0'); INSERT INTO `district` VALUES ('2189', '嵊泗县', '3', '181', '0'); INSERT INTO `district` VALUES ('2190', '普陀区', '3', '181', '0'); INSERT INTO `district` VALUES ('2191', '常山县', '3', '182', '0'); INSERT INTO `district` VALUES ('2192', '开化县', '3', '182', '0'); INSERT INTO `district` VALUES ('2193', '柯城区', '3', '182', '0'); INSERT INTO `district` VALUES ('2194', '江山市', '3', '182', '0'); INSERT INTO `district` VALUES ('2195', '衢江区', '3', '182', '0'); INSERT INTO `district` VALUES ('2196', '龙游县', '3', '182', '0'); INSERT INTO `district` VALUES ('2197', '东阳市', '3', '183', '0'); INSERT INTO `district` VALUES ('2198', '义乌市', '3', '183', '0'); INSERT INTO `district` VALUES ('2199', '兰溪市', '3', '183', '0'); INSERT INTO `district` VALUES ('2200', '婺城区', '3', '183', '0'); INSERT INTO `district` VALUES ('2201', '武义县', '3', '183', '0'); INSERT INTO `district` VALUES ('2202', '永康市', '3', '183', '0'); INSERT INTO `district` VALUES ('2203', '浦江县', '3', '183', '0'); INSERT INTO `district` VALUES ('2204', '磐安县', '3', '183', '0'); INSERT INTO `district` VALUES ('2205', '金东区', '3', '183', '0'); INSERT INTO `district` VALUES ('2206', '三门县', '3', '184', '0'); INSERT INTO `district` VALUES ('2207', '临海市', '3', '184', '0'); INSERT INTO `district` VALUES ('2208', '仙居县', '3', '184', '0'); INSERT INTO `district` VALUES ('2209', '天台县', '3', '184', '0'); INSERT INTO `district` VALUES ('2210', '椒江区', '3', '184', '0'); INSERT INTO `district` VALUES ('2211', '温岭市', '3', '184', '0'); INSERT INTO `district` VALUES ('2212', '玉环县', '3', '184', '0'); INSERT INTO `district` VALUES ('2213', '路桥区', '3', '184', '0'); INSERT INTO `district` VALUES ('2214', '黄岩区', '3', '184', '0'); INSERT INTO `district` VALUES ('2215', '云和县', '3', '185', '0'); INSERT INTO `district` VALUES ('2216', '庆元县', '3', '185', '0'); INSERT INTO `district` VALUES ('2217', '景宁畲族自治县', '3', '185', '0'); INSERT INTO `district` VALUES ('2218', '松阳县', '3', '185', '0'); INSERT INTO `district` VALUES ('2219', '缙云县', '3', '185', '0'); INSERT INTO `district` VALUES ('2220', '莲都区', '3', '185', '0'); INSERT INTO `district` VALUES ('2221', '遂昌县', '3', '185', '0'); INSERT INTO `district` VALUES ('2222', '青田县', '3', '185', '0'); INSERT INTO `district` VALUES ('2223', '龙泉市', '3', '185', '0'); INSERT INTO `district` VALUES ('2224', '包河区', '3', '186', '0'); INSERT INTO `district` VALUES ('2225', '庐阳区', '3', '186', '0'); INSERT INTO `district` VALUES ('2226', '瑶海区', '3', '186', '0'); INSERT INTO `district` VALUES ('2227', '肥东县', '3', '186', '0'); INSERT INTO `district` VALUES ('2228', '肥西县', '3', '186', '0'); INSERT INTO `district` VALUES ('2229', '蜀山区', '3', '186', '0'); INSERT INTO `district` VALUES ('2230', '长丰县', '3', '186', '0'); INSERT INTO `district` VALUES ('2231', '三山区', '3', '187', '0'); INSERT INTO `district` VALUES ('2232', '南陵县', '3', '187', '0'); INSERT INTO `district` VALUES ('2233', '弋江区', '3', '187', '0'); INSERT INTO `district` VALUES ('2234', '繁昌县', '3', '187', '0'); INSERT INTO `district` VALUES ('2235', '芜湖县', '3', '187', '0'); INSERT INTO `district` VALUES ('2236', '镜湖区', '3', '187', '0'); INSERT INTO `district` VALUES ('2237', '鸠江区', '3', '187', '0'); INSERT INTO `district` VALUES ('2238', '五河县', '3', '188', '0'); INSERT INTO `district` VALUES ('2239', '固镇县', '3', '188', '0'); INSERT INTO `district` VALUES ('2240', '怀远县', '3', '188', '0'); INSERT INTO `district` VALUES ('2241', '淮上区', '3', '188', '0'); INSERT INTO `district` VALUES ('2242', '禹会区', '3', '188', '0'); INSERT INTO `district` VALUES ('2243', '蚌山区', '3', '188', '0'); INSERT INTO `district` VALUES ('2244', '龙子湖区', '3', '188', '0'); INSERT INTO `district` VALUES ('2245', '八公山区', '3', '189', '0'); INSERT INTO `district` VALUES ('2246', '凤台县', '3', '189', '0'); INSERT INTO `district` VALUES ('2247', '大通区', '3', '189', '0'); INSERT INTO `district` VALUES ('2248', '潘集区', '3', '189', '0'); INSERT INTO `district` VALUES ('2249', '田家庵区', '3', '189', '0'); INSERT INTO `district` VALUES ('2250', '谢家集区', '3', '189', '0'); INSERT INTO `district` VALUES ('2251', '当涂县', '3', '190', '0'); INSERT INTO `district` VALUES ('2252', '花山区', '3', '190', '0'); INSERT INTO `district` VALUES ('2253', '金家庄区', '3', '190', '0'); INSERT INTO `district` VALUES ('2254', '雨山区', '3', '190', '0'); INSERT INTO `district` VALUES ('2255', '杜集区', '3', '191', '0'); INSERT INTO `district` VALUES ('2256', '濉溪县', '3', '191', '0'); INSERT INTO `district` VALUES ('2257', '烈山区', '3', '191', '0'); INSERT INTO `district` VALUES ('2258', '相山区', '3', '191', '0'); INSERT INTO `district` VALUES ('2259', '狮子山区', '3', '192', '0'); INSERT INTO `district` VALUES ('2260', '郊区', '3', '192', '0'); INSERT INTO `district` VALUES ('2261', '铜官山区', '3', '192', '0'); INSERT INTO `district` VALUES ('2262', '铜陵县', '3', '192', '0'); INSERT INTO `district` VALUES ('2263', '大观区', '3', '193', '0'); INSERT INTO `district` VALUES ('2264', '太湖县', '3', '193', '0'); INSERT INTO `district` VALUES ('2265', '宜秀区', '3', '193', '0'); INSERT INTO `district` VALUES ('2266', '宿松县', '3', '193', '0'); INSERT INTO `district` VALUES ('2267', '岳西县', '3', '193', '0'); INSERT INTO `district` VALUES ('2268', '怀宁县', '3', '193', '0'); INSERT INTO `district` VALUES ('2269', '望江县', '3', '193', '0'); INSERT INTO `district` VALUES ('2270', '枞阳县', '3', '193', '0'); INSERT INTO `district` VALUES ('2271', '桐城市', '3', '193', '0'); INSERT INTO `district` VALUES ('2272', '潜山县', '3', '193', '0'); INSERT INTO `district` VALUES ('2273', '迎江区', '3', '193', '0'); INSERT INTO `district` VALUES ('2274', '休宁县', '3', '194', '0'); INSERT INTO `district` VALUES ('2275', '屯溪区', '3', '194', '0'); INSERT INTO `district` VALUES ('2276', '徽州区', '3', '194', '0'); INSERT INTO `district` VALUES ('2277', '歙县', '3', '194', '0'); INSERT INTO `district` VALUES ('2278', '祁门县', '3', '194', '0'); INSERT INTO `district` VALUES ('2279', '黄山区', '3', '194', '0'); INSERT INTO `district` VALUES ('2280', '黟县', '3', '194', '0'); INSERT INTO `district` VALUES ('2281', '全椒县', '3', '195', '0'); INSERT INTO `district` VALUES ('2282', '凤阳县', '3', '195', '0'); INSERT INTO `district` VALUES ('2283', '南谯区', '3', '195', '0'); INSERT INTO `district` VALUES ('2284', '天长市', '3', '195', '0'); INSERT INTO `district` VALUES ('2285', '定远县', '3', '195', '0'); INSERT INTO `district` VALUES ('2286', '明光市', '3', '195', '0'); INSERT INTO `district` VALUES ('2287', '来安县', '3', '195', '0'); INSERT INTO `district` VALUES ('2288', '琅玡区', '3', '195', '0'); INSERT INTO `district` VALUES ('2289', '临泉县', '3', '196', '0'); INSERT INTO `district` VALUES ('2290', '太和县', '3', '196', '0'); INSERT INTO `district` VALUES ('2291', '界首市', '3', '196', '0'); INSERT INTO `district` VALUES ('2292', '阜南县', '3', '196', '0'); INSERT INTO `district` VALUES ('2293', '颍东区', '3', '196', '0'); INSERT INTO `district` VALUES ('2294', '颍州区', '3', '196', '0'); INSERT INTO `district` VALUES ('2295', '颍泉区', '3', '196', '0'); INSERT INTO `district` VALUES ('2296', '颖上县', '3', '196', '0'); INSERT INTO `district` VALUES ('2297', '埇桥区', '3', '197', '0'); INSERT INTO `district` VALUES ('2298', '泗县辖', '3', '197', '0'); INSERT INTO `district` VALUES ('2299', '灵璧县', '3', '197', '0'); INSERT INTO `district` VALUES ('2300', '砀山县', '3', '197', '0'); INSERT INTO `district` VALUES ('2301', '萧县', '3', '197', '0'); INSERT INTO `district` VALUES ('2302', '含山县', '3', '198', '0'); INSERT INTO `district` VALUES ('2303', '和县', '3', '198', '0'); INSERT INTO `district` VALUES ('2304', '居巢区', '3', '198', '0'); INSERT INTO `district` VALUES ('2305', '庐江县', '3', '198', '0'); INSERT INTO `district` VALUES ('2306', '无为县', '3', '198', '0'); INSERT INTO `district` VALUES ('2307', '寿县', '3', '199', '0'); INSERT INTO `district` VALUES ('2308', '舒城县', '3', '199', '0'); INSERT INTO `district` VALUES ('2309', '裕安区', '3', '199', '0'); INSERT INTO `district` VALUES ('2310', '金安区', '3', '199', '0'); INSERT INTO `district` VALUES ('2311', '金寨县', '3', '199', '0'); INSERT INTO `district` VALUES ('2312', '霍山县', '3', '199', '0'); INSERT INTO `district` VALUES ('2313', '霍邱县', '3', '199', '0'); INSERT INTO `district` VALUES ('2314', '利辛县', '3', '200', '0'); INSERT INTO `district` VALUES ('2315', '涡阳县', '3', '200', '0'); INSERT INTO `district` VALUES ('2316', '蒙城县', '3', '200', '0'); INSERT INTO `district` VALUES ('2317', '谯城区', '3', '200', '0'); INSERT INTO `district` VALUES ('2318', '东至县', '3', '201', '0'); INSERT INTO `district` VALUES ('2319', '石台县', '3', '201', '0'); INSERT INTO `district` VALUES ('2320', '贵池区', '3', '201', '0'); INSERT INTO `district` VALUES ('2321', '青阳县', '3', '201', '0'); INSERT INTO `district` VALUES ('2322', '宁国市', '3', '202', '0'); INSERT INTO `district` VALUES ('2323', '宣州区', '3', '202', '0'); INSERT INTO `district` VALUES ('2324', '广德县', '3', '202', '0'); INSERT INTO `district` VALUES ('2325', '旌德县', '3', '202', '0'); INSERT INTO `district` VALUES ('2326', '泾县', '3', '202', '0'); INSERT INTO `district` VALUES ('2327', '绩溪县', '3', '202', '0'); INSERT INTO `district` VALUES ('2328', '郎溪县', '3', '202', '0'); INSERT INTO `district` VALUES ('2329', '仓山区', '3', '203', '0'); INSERT INTO `district` VALUES ('2330', '台江区', '3', '203', '0'); INSERT INTO `district` VALUES ('2331', '平潭县', '3', '203', '0'); INSERT INTO `district` VALUES ('2332', '晋安区', '3', '203', '0'); INSERT INTO `district` VALUES ('2333', '永泰县', '3', '203', '0'); INSERT INTO `district` VALUES ('2334', '福清市', '3', '203', '0'); INSERT INTO `district` VALUES ('2335', '罗源县', '3', '203', '0'); INSERT INTO `district` VALUES ('2336', '连江县', '3', '203', '0'); INSERT INTO `district` VALUES ('2337', '长乐市', '3', '203', '0'); INSERT INTO `district` VALUES ('2338', '闽侯县', '3', '203', '0'); INSERT INTO `district` VALUES ('2339', '闽清县', '3', '203', '0'); INSERT INTO `district` VALUES ('2340', '马尾区', '3', '203', '0'); INSERT INTO `district` VALUES ('2341', '鼓楼区', '3', '203', '0'); INSERT INTO `district` VALUES ('2342', '同安区', '3', '204', '0'); INSERT INTO `district` VALUES ('2343', '思明区', '3', '204', '0'); INSERT INTO `district` VALUES ('2344', '海沧区', '3', '204', '0'); INSERT INTO `district` VALUES ('2345', '湖里区', '3', '204', '0'); INSERT INTO `district` VALUES ('2346', '翔安区', '3', '204', '0'); INSERT INTO `district` VALUES ('2347', '集美区', '3', '204', '0'); INSERT INTO `district` VALUES ('2348', '仙游县', '3', '205', '0'); INSERT INTO `district` VALUES ('2349', '城厢区', '3', '205', '0'); INSERT INTO `district` VALUES ('2350', '涵江区', '3', '205', '0'); INSERT INTO `district` VALUES ('2351', '秀屿区', '3', '205', '0'); INSERT INTO `district` VALUES ('2352', '荔城区', '3', '205', '0'); INSERT INTO `district` VALUES ('2353', '三元区', '3', '206', '0'); INSERT INTO `district` VALUES ('2354', '大田县', '3', '206', '0'); INSERT INTO `district` VALUES ('2355', '宁化县', '3', '206', '0'); INSERT INTO `district` VALUES ('2356', '将乐县', '3', '206', '0'); INSERT INTO `district` VALUES ('2357', '尤溪县', '3', '206', '0'); INSERT INTO `district` VALUES ('2358', '建宁县', '3', '206', '0'); INSERT INTO `district` VALUES ('2359', '明溪县', '3', '206', '0'); INSERT INTO `district` VALUES ('2360', '梅列区', '3', '206', '0'); INSERT INTO `district` VALUES ('2361', '永安市', '3', '206', '0'); INSERT INTO `district` VALUES ('2362', '沙县', '3', '206', '0'); INSERT INTO `district` VALUES ('2363', '泰宁县', '3', '206', '0'); INSERT INTO `district` VALUES ('2364', '清流县', '3', '206', '0'); INSERT INTO `district` VALUES ('2365', '丰泽区', '3', '207', '0'); INSERT INTO `district` VALUES ('2366', '南安市', '3', '207', '0'); INSERT INTO `district` VALUES ('2367', '安溪县', '3', '207', '0'); INSERT INTO `district` VALUES ('2368', '德化县', '3', '207', '0'); INSERT INTO `district` VALUES ('2369', '惠安县', '3', '207', '0'); INSERT INTO `district` VALUES ('2370', '晋江市', '3', '207', '0'); INSERT INTO `district` VALUES ('2371', '永春县', '3', '207', '0'); INSERT INTO `district` VALUES ('2372', '泉港区', '3', '207', '0'); INSERT INTO `district` VALUES ('2373', '洛江区', '3', '207', '0'); INSERT INTO `district` VALUES ('2374', '石狮市', '3', '207', '0'); INSERT INTO `district` VALUES ('2375', '金门县', '3', '207', '0'); INSERT INTO `district` VALUES ('2376', '鲤城区', '3', '207', '0'); INSERT INTO `district` VALUES ('2377', '东山县', '3', '208', '0'); INSERT INTO `district` VALUES ('2378', '云霄县', '3', '208', '0'); INSERT INTO `district` VALUES ('2379', '华安县', '3', '208', '0'); INSERT INTO `district` VALUES ('2380', '南靖县', '3', '208', '0'); INSERT INTO `district` VALUES ('2381', '平和县', '3', '208', '0'); INSERT INTO `district` VALUES ('2382', '漳浦县', '3', '208', '0'); INSERT INTO `district` VALUES ('2383', '芗城区', '3', '208', '0'); INSERT INTO `district` VALUES ('2384', '诏安县', '3', '208', '0'); INSERT INTO `district` VALUES ('2385', '长泰县', '3', '208', '0'); INSERT INTO `district` VALUES ('2386', '龙文区', '3', '208', '0'); INSERT INTO `district` VALUES ('2387', '龙海市', '3', '208', '0'); INSERT INTO `district` VALUES ('2388', '光泽县', '3', '209', '0'); INSERT INTO `district` VALUES ('2389', '延平区', '3', '209', '0'); INSERT INTO `district` VALUES ('2390', '建瓯市', '3', '209', '0'); INSERT INTO `district` VALUES ('2391', '建阳市', '3', '209', '0'); INSERT INTO `district` VALUES ('2392', '政和县', '3', '209', '0'); INSERT INTO `district` VALUES ('2393', '松溪县', '3', '209', '0'); INSERT INTO `district` VALUES ('2394', '武夷山市', '3', '209', '0'); INSERT INTO `district` VALUES ('2395', '浦城县', '3', '209', '0'); INSERT INTO `district` VALUES ('2396', '邵武市', '3', '209', '0'); INSERT INTO `district` VALUES ('2397', '顺昌县', '3', '209', '0'); INSERT INTO `district` VALUES ('2398', '上杭县', '3', '210', '0'); INSERT INTO `district` VALUES ('2399', '新罗区', '3', '210', '0'); INSERT INTO `district` VALUES ('2400', '武平县', '3', '210', '0'); INSERT INTO `district` VALUES ('2401', '永定县', '3', '210', '0'); INSERT INTO `district` VALUES ('2402', '漳平市', '3', '210', '0'); INSERT INTO `district` VALUES ('2403', '连城县', '3', '210', '0'); INSERT INTO `district` VALUES ('2404', '长汀县', '3', '210', '0'); INSERT INTO `district` VALUES ('2405', '古田县', '3', '211', '0'); INSERT INTO `district` VALUES ('2406', '周宁县', '3', '211', '0'); INSERT INTO `district` VALUES ('2407', '寿宁县', '3', '211', '0'); INSERT INTO `district` VALUES ('2408', '屏南县', '3', '211', '0'); INSERT INTO `district` VALUES ('2409', '柘荣县', '3', '211', '0'); INSERT INTO `district` VALUES ('2410', '福安市', '3', '211', '0'); INSERT INTO `district` VALUES ('2411', '福鼎市', '3', '211', '0'); INSERT INTO `district` VALUES ('2412', '蕉城区', '3', '211', '0'); INSERT INTO `district` VALUES ('2413', '霞浦县', '3', '211', '0'); INSERT INTO `district` VALUES ('2414', '东湖区', '3', '212', '0'); INSERT INTO `district` VALUES ('2415', '南昌县', '3', '212', '0'); INSERT INTO `district` VALUES ('2416', '安义县', '3', '212', '0'); INSERT INTO `district` VALUES ('2417', '新建县', '3', '212', '0'); INSERT INTO `district` VALUES ('2418', '湾里区', '3', '212', '0'); INSERT INTO `district` VALUES ('2419', '西湖区', '3', '212', '0'); INSERT INTO `district` VALUES ('2420', '进贤县', '3', '212', '0'); INSERT INTO `district` VALUES ('2421', '青云谱区', '3', '212', '0'); INSERT INTO `district` VALUES ('2422', '青山湖区', '3', '212', '0'); INSERT INTO `district` VALUES ('2423', '乐平市', '3', '213', '0'); INSERT INTO `district` VALUES ('2424', '昌江区', '3', '213', '0'); INSERT INTO `district` VALUES ('2425', '浮梁县', '3', '213', '0'); INSERT INTO `district` VALUES ('2426', '珠山区', '3', '213', '0'); INSERT INTO `district` VALUES ('2427', '上栗县', '3', '214', '0'); INSERT INTO `district` VALUES ('2428', '安源区', '3', '214', '0'); INSERT INTO `district` VALUES ('2429', '湘东区', '3', '214', '0'); INSERT INTO `district` VALUES ('2430', '芦溪县', '3', '214', '0'); INSERT INTO `district` VALUES ('2431', '莲花县', '3', '214', '0'); INSERT INTO `district` VALUES ('2432', '九江县', '3', '215', '0'); INSERT INTO `district` VALUES ('2433', '修水县', '3', '215', '0'); INSERT INTO `district` VALUES ('2434', '庐山区', '3', '215', '0'); INSERT INTO `district` VALUES ('2435', '彭泽县', '3', '215', '0'); INSERT INTO `district` VALUES ('2436', '德安县', '3', '215', '0'); INSERT INTO `district` VALUES ('2437', '星子县', '3', '215', '0'); INSERT INTO `district` VALUES ('2438', '武宁县', '3', '215', '0'); INSERT INTO `district` VALUES ('2439', '永修县', '3', '215', '0'); INSERT INTO `district` VALUES ('2440', '浔阳区', '3', '215', '0'); INSERT INTO `district` VALUES ('2441', '湖口县', '3', '215', '0'); INSERT INTO `district` VALUES ('2442', '瑞昌市', '3', '215', '0'); INSERT INTO `district` VALUES ('2443', '都昌县', '3', '215', '0'); INSERT INTO `district` VALUES ('2444', '分宜县', '3', '216', '0'); INSERT INTO `district` VALUES ('2445', '渝水区', '3', '216', '0'); INSERT INTO `district` VALUES ('2446', '余江县', '3', '217', '0'); INSERT INTO `district` VALUES ('2447', '月湖区', '3', '217', '0'); INSERT INTO `district` VALUES ('2448', '贵溪市', '3', '217', '0'); INSERT INTO `district` VALUES ('2449', '上犹县', '3', '218', '0'); INSERT INTO `district` VALUES ('2450', '于都县', '3', '218', '0'); INSERT INTO `district` VALUES ('2451', '会昌县', '3', '218', '0'); INSERT INTO `district` VALUES ('2452', '信丰县', '3', '218', '0'); INSERT INTO `district` VALUES ('2453', '全南县', '3', '218', '0'); INSERT INTO `district` VALUES ('2454', '兴国县', '3', '218', '0'); INSERT INTO `district` VALUES ('2455', '南康市', '3', '218', '0'); INSERT INTO `district` VALUES ('2456', '大余县', '3', '218', '0'); INSERT INTO `district` VALUES ('2457', '宁都县', '3', '218', '0'); INSERT INTO `district` VALUES ('2458', '安远县', '3', '218', '0'); INSERT INTO `district` VALUES ('2459', '定南县', '3', '218', '0'); INSERT INTO `district` VALUES ('2460', '寻乌县', '3', '218', '0'); INSERT INTO `district` VALUES ('2461', '崇义县', '3', '218', '0'); INSERT INTO `district` VALUES ('2462', '瑞金市', '3', '218', '0'); INSERT INTO `district` VALUES ('2463', '石城县', '3', '218', '0'); INSERT INTO `district` VALUES ('2464', '章贡区', '3', '218', '0'); INSERT INTO `district` VALUES ('2465', '赣县', '3', '218', '0'); INSERT INTO `district` VALUES ('2466', '龙南县', '3', '218', '0'); INSERT INTO `district` VALUES ('2467', '万安县', '3', '219', '0'); INSERT INTO `district` VALUES ('2468', '井冈山市', '3', '219', '0'); INSERT INTO `district` VALUES ('2469', '吉安县', '3', '219', '0'); INSERT INTO `district` VALUES ('2470', '吉州区', '3', '219', '0'); INSERT INTO `district` VALUES ('2471', '吉水县', '3', '219', '0'); INSERT INTO `district` VALUES ('2472', '安福县', '3', '219', '0'); INSERT INTO `district` VALUES ('2473', '峡江县', '3', '219', '0'); INSERT INTO `district` VALUES ('2474', '新干县', '3', '219', '0'); INSERT INTO `district` VALUES ('2475', '永丰县', '3', '219', '0'); INSERT INTO `district` VALUES ('2476', '永新县', '3', '219', '0'); INSERT INTO `district` VALUES ('2477', '泰和县', '3', '219', '0'); INSERT INTO `district` VALUES ('2478', '遂川县', '3', '219', '0'); INSERT INTO `district` VALUES ('2479', '青原区', '3', '219', '0'); INSERT INTO `district` VALUES ('2480', '万载县', '3', '220', '0'); INSERT INTO `district` VALUES ('2481', '上高县', '3', '220', '0'); INSERT INTO `district` VALUES ('2482', '丰城市', '3', '220', '0'); INSERT INTO `district` VALUES ('2483', '奉新县', '3', '220', '0'); INSERT INTO `district` VALUES ('2484', '宜丰县', '3', '220', '0'); INSERT INTO `district` VALUES ('2485', '樟树市', '3', '220', '0'); INSERT INTO `district` VALUES ('2486', '袁州区', '3', '220', '0'); INSERT INTO `district` VALUES ('2487', '铜鼓县', '3', '220', '0'); INSERT INTO `district` VALUES ('2488', '靖安县', '3', '220', '0'); INSERT INTO `district` VALUES ('2489', '高安市', '3', '220', '0'); INSERT INTO `district` VALUES ('2490', '东乡县', '3', '221', '0'); INSERT INTO `district` VALUES ('2491', '临川区', '3', '221', '0'); INSERT INTO `district` VALUES ('2492', '乐安县', '3', '221', '0'); INSERT INTO `district` VALUES ('2493', '南丰县', '3', '221', '0'); INSERT INTO `district` VALUES ('2494', '南城县', '3', '221', '0'); INSERT INTO `district` VALUES ('2495', '宜黄县', '3', '221', '0'); INSERT INTO `district` VALUES ('2496', '崇仁县', '3', '221', '0'); INSERT INTO `district` VALUES ('2497', '广昌县', '3', '221', '0'); INSERT INTO `district` VALUES ('2498', '资溪县', '3', '221', '0'); INSERT INTO `district` VALUES ('2499', '金溪县', '3', '221', '0'); INSERT INTO `district` VALUES ('2500', '黎川县', '3', '221', '0'); INSERT INTO `district` VALUES ('2501', '万年县', '3', '222', '0'); INSERT INTO `district` VALUES ('2502', '上饶县', '3', '222', '0'); INSERT INTO `district` VALUES ('2503', '余干县', '3', '222', '0'); INSERT INTO `district` VALUES ('2504', '信州区', '3', '222', '0'); INSERT INTO `district` VALUES ('2505', '婺源县', '3', '222', '0'); INSERT INTO `district` VALUES ('2506', '广丰县', '3', '222', '0'); INSERT INTO `district` VALUES ('2507', '弋阳县', '3', '222', '0'); INSERT INTO `district` VALUES ('2508', '德兴市', '3', '222', '0'); INSERT INTO `district` VALUES ('2509', '横峰县', '3', '222', '0'); INSERT INTO `district` VALUES ('2510', '玉山县', '3', '222', '0'); INSERT INTO `district` VALUES ('2511', '鄱阳县', '3', '222', '0'); INSERT INTO `district` VALUES ('2512', '铅山县', '3', '222', '0'); INSERT INTO `district` VALUES ('2513', '历下区', '3', '223', '0'); INSERT INTO `district` VALUES ('2514', '历城区', '3', '223', '0'); INSERT INTO `district` VALUES ('2515', '商河县', '3', '223', '0'); INSERT INTO `district` VALUES ('2516', '天桥区', '3', '223', '0'); INSERT INTO `district` VALUES ('2517', '市中区', '3', '223', '0'); INSERT INTO `district` VALUES ('2518', '平阴县', '3', '223', '0'); INSERT INTO `district` VALUES ('2519', '槐荫区', '3', '223', '0'); INSERT INTO `district` VALUES ('2520', '济阳县', '3', '223', '0'); INSERT INTO `district` VALUES ('2521', '章丘市', '3', '223', '0'); INSERT INTO `district` VALUES ('2522', '长清区', '3', '223', '0'); INSERT INTO `district` VALUES ('2523', '即墨市', '3', '224', '0'); INSERT INTO `district` VALUES ('2524', '四方区', '3', '224', '0'); INSERT INTO `district` VALUES ('2525', '城阳区', '3', '224', '0'); INSERT INTO `district` VALUES ('2526', '崂山区', '3', '224', '0'); INSERT INTO `district` VALUES ('2527', '市北区', '3', '224', '0'); INSERT INTO `district` VALUES ('2528', '市南区', '3', '224', '0'); INSERT INTO `district` VALUES ('2529', '平度市', '3', '224', '0'); INSERT INTO `district` VALUES ('2530', '李沧区', '3', '224', '0'); INSERT INTO `district` VALUES ('2531', '胶南市', '3', '224', '0'); INSERT INTO `district` VALUES ('2532', '胶州市', '3', '224', '0'); INSERT INTO `district` VALUES ('2533', '莱西市', '3', '224', '0'); INSERT INTO `district` VALUES ('2534', '黄岛区', '3', '224', '0'); INSERT INTO `district` VALUES ('2535', '临淄区', '3', '225', '0'); INSERT INTO `district` VALUES ('2536', '博山区', '3', '225', '0'); INSERT INTO `district` VALUES ('2537', '周村区', '3', '225', '0'); INSERT INTO `district` VALUES ('2538', '张店区', '3', '225', '0'); INSERT INTO `district` VALUES ('2539', '桓台县', '3', '225', '0'); INSERT INTO `district` VALUES ('2540', '沂源县', '3', '225', '0'); INSERT INTO `district` VALUES ('2541', '淄川区', '3', '225', '0'); INSERT INTO `district` VALUES ('2542', '高青县', '3', '225', '0'); INSERT INTO `district` VALUES ('2543', '台儿庄区', '3', '226', '0'); INSERT INTO `district` VALUES ('2544', '山亭区', '3', '226', '0'); INSERT INTO `district` VALUES ('2545', '峄城区', '3', '226', '0'); INSERT INTO `district` VALUES ('2546', '市中区', '3', '226', '0'); INSERT INTO `district` VALUES ('2547', '滕州市', '3', '226', '0'); INSERT INTO `district` VALUES ('2548', '薛城区', '3', '226', '0'); INSERT INTO `district` VALUES ('2549', '东营区', '3', '227', '0'); INSERT INTO `district` VALUES ('2550', '利津县', '3', '227', '0'); INSERT INTO `district` VALUES ('2551', '垦利县', '3', '227', '0'); INSERT INTO `district` VALUES ('2552', '广饶县', '3', '227', '0'); INSERT INTO `district` VALUES ('2553', '河口区', '3', '227', '0'); INSERT INTO `district` VALUES ('2554', '招远市', '3', '228', '0'); INSERT INTO `district` VALUES ('2555', '栖霞市', '3', '228', '0'); INSERT INTO `district` VALUES ('2556', '海阳市', '3', '228', '0'); INSERT INTO `district` VALUES ('2557', '牟平区', '3', '228', '0'); INSERT INTO `district` VALUES ('2558', '福山区', '3', '228', '0'); INSERT INTO `district` VALUES ('2559', '芝罘区', '3', '228', '0'); INSERT INTO `district` VALUES ('2560', '莱山区', '3', '228', '0'); INSERT INTO `district` VALUES ('2561', '莱州市', '3', '228', '0'); INSERT INTO `district` VALUES ('2562', '莱阳市', '3', '228', '0'); INSERT INTO `district` VALUES ('2563', '蓬莱市', '3', '228', '0'); INSERT INTO `district` VALUES ('2564', '长岛县', '3', '228', '0'); INSERT INTO `district` VALUES ('2565', '龙口市', '3', '228', '0'); INSERT INTO `district` VALUES ('2566', '临朐县', '3', '229', '0'); INSERT INTO `district` VALUES ('2567', '坊子区', '3', '229', '0'); INSERT INTO `district` VALUES ('2568', '奎文区', '3', '229', '0'); INSERT INTO `district` VALUES ('2569', '安丘市', '3', '229', '0'); INSERT INTO `district` VALUES ('2570', '寒亭区', '3', '229', '0'); INSERT INTO `district` VALUES ('2571', '寿光市', '3', '229', '0'); INSERT INTO `district` VALUES ('2572', '昌乐县', '3', '229', '0'); INSERT INTO `district` VALUES ('2573', '昌邑市', '3', '229', '0'); INSERT INTO `district` VALUES ('2574', '潍城区', '3', '229', '0'); INSERT INTO `district` VALUES ('2575', '诸城市', '3', '229', '0'); INSERT INTO `district` VALUES ('2576', '青州市', '3', '229', '0'); INSERT INTO `district` VALUES ('2577', '高密市', '3', '229', '0'); INSERT INTO `district` VALUES ('2578', '任城区', '3', '230', '0'); INSERT INTO `district` VALUES ('2579', '兖州市', '3', '230', '0'); INSERT INTO `district` VALUES ('2580', '嘉祥县', '3', '230', '0'); INSERT INTO `district` VALUES ('2581', '市中区', '3', '230', '0'); INSERT INTO `district` VALUES ('2582', '微山县', '3', '230', '0'); INSERT INTO `district` VALUES ('2583', '曲阜市', '3', '230', '0'); INSERT INTO `district` VALUES ('2584', '梁山县', '3', '230', '0'); INSERT INTO `district` VALUES ('2585', '汶上县', '3', '230', '0'); INSERT INTO `district` VALUES ('2586', '泗水县', '3', '230', '0'); INSERT INTO `district` VALUES ('2587', '邹城市', '3', '230', '0'); INSERT INTO `district` VALUES ('2588', '金乡县', '3', '230', '0'); INSERT INTO `district` VALUES ('2589', '鱼台县', '3', '230', '0'); INSERT INTO `district` VALUES ('2590', '东平县', '3', '231', '0'); INSERT INTO `district` VALUES ('2591', '宁阳县', '3', '231', '0'); INSERT INTO `district` VALUES ('2592', '岱岳区', '3', '231', '0'); INSERT INTO `district` VALUES ('2593', '新泰市', '3', '231', '0'); INSERT INTO `district` VALUES ('2594', '泰山区', '3', '231', '0'); INSERT INTO `district` VALUES ('2595', '肥城市', '3', '231', '0'); INSERT INTO `district` VALUES ('2596', '乳山市', '3', '232', '0'); INSERT INTO `district` VALUES ('2597', '文登市', '3', '232', '0'); INSERT INTO `district` VALUES ('2598', '环翠区', '3', '232', '0'); INSERT INTO `district` VALUES ('2599', '荣成市', '3', '232', '0'); INSERT INTO `district` VALUES ('2600', '东港区', '3', '233', '0'); INSERT INTO `district` VALUES ('2601', '五莲县', '3', '233', '0'); INSERT INTO `district` VALUES ('2602', '岚山区', '3', '233', '0'); INSERT INTO `district` VALUES ('2603', '莒县', '3', '233', '0'); INSERT INTO `district` VALUES ('2604', '莱城区', '3', '234', '0'); INSERT INTO `district` VALUES ('2605', '钢城区', '3', '234', '0'); INSERT INTO `district` VALUES ('2606', '临沭县', '3', '235', '0'); INSERT INTO `district` VALUES ('2607', '兰山区', '3', '235', '0'); INSERT INTO `district` VALUES ('2608', '平邑县', '3', '235', '0'); INSERT INTO `district` VALUES ('2609', '沂南县', '3', '235', '0'); INSERT INTO `district` VALUES ('2610', '沂水县', '3', '235', '0'); INSERT INTO `district` VALUES ('2611', '河东区', '3', '235', '0'); INSERT INTO `district` VALUES ('2612', '罗庄区', '3', '235', '0'); INSERT INTO `district` VALUES ('2613', '苍山县', '3', '235', '0'); INSERT INTO `district` VALUES ('2614', '莒南县', '3', '235', '0'); INSERT INTO `district` VALUES ('2615', '蒙阴县', '3', '235', '0'); INSERT INTO `district` VALUES ('2616', '费县', '3', '235', '0'); INSERT INTO `district` VALUES ('2617', '郯城县', '3', '235', '0'); INSERT INTO `district` VALUES ('2618', '临邑县', '3', '236', '0'); INSERT INTO `district` VALUES ('2619', '乐陵市', '3', '236', '0'); INSERT INTO `district` VALUES ('2620', '夏津县', '3', '236', '0'); INSERT INTO `district` VALUES ('2621', '宁津县', '3', '236', '0'); INSERT INTO `district` VALUES ('2622', '平原县', '3', '236', '0'); INSERT INTO `district` VALUES ('2623', '庆云县', '3', '236', '0'); INSERT INTO `district` VALUES ('2624', '德城区', '3', '236', '0'); INSERT INTO `district` VALUES ('2625', '武城县', '3', '236', '0'); INSERT INTO `district` VALUES ('2626', '禹城市', '3', '236', '0'); INSERT INTO `district` VALUES ('2627', '陵县', '3', '236', '0'); INSERT INTO `district` VALUES ('2628', '齐河县', '3', '236', '0'); INSERT INTO `district` VALUES ('2629', '东昌府区', '3', '237', '0'); INSERT INTO `district` VALUES ('2630', '东阿县', '3', '237', '0'); INSERT INTO `district` VALUES ('2631', '临清市', '3', '237', '0'); INSERT INTO `district` VALUES ('2632', '冠县', '3', '237', '0'); INSERT INTO `district` VALUES ('2633', '茌平县', '3', '237', '0'); INSERT INTO `district` VALUES ('2634', '莘县', '3', '237', '0'); INSERT INTO `district` VALUES ('2635', '阳谷县', '3', '237', '0'); INSERT INTO `district` VALUES ('2636', '高唐县', '3', '237', '0'); INSERT INTO `district` VALUES ('2637', '博兴县', '3', '238', '0'); INSERT INTO `district` VALUES ('2638', '惠民县', '3', '238', '0'); INSERT INTO `district` VALUES ('2639', '无棣县', '3', '238', '0'); INSERT INTO `district` VALUES ('2640', '沾化县', '3', '238', '0'); INSERT INTO `district` VALUES ('2641', '滨城区', '3', '238', '0'); INSERT INTO `district` VALUES ('2642', '邹平县', '3', '238', '0'); INSERT INTO `district` VALUES ('2643', '阳信县', '3', '238', '0'); INSERT INTO `district` VALUES ('2644', '东明县', '3', '239', '0'); INSERT INTO `district` VALUES ('2645', '单县', '3', '239', '0'); INSERT INTO `district` VALUES ('2646', '定陶县', '3', '239', '0'); INSERT INTO `district` VALUES ('2647', '巨野县', '3', '239', '0'); INSERT INTO `district` VALUES ('2648', '成武县', '3', '239', '0'); INSERT INTO `district` VALUES ('2649', '曹县', '3', '239', '0'); INSERT INTO `district` VALUES ('2650', '牡丹区', '3', '239', '0'); INSERT INTO `district` VALUES ('2651', '郓城县', '3', '239', '0'); INSERT INTO `district` VALUES ('2652', '鄄城县', '3', '239', '0'); INSERT INTO `district` VALUES ('2653', '上街区', '3', '240', '0'); INSERT INTO `district` VALUES ('2654', '中原区', '3', '240', '0'); INSERT INTO `district` VALUES ('2655', '中牟县', '3', '240', '0'); INSERT INTO `district` VALUES ('2656', '二七区', '3', '240', '0'); INSERT INTO `district` VALUES ('2657', '巩义市', '3', '240', '0'); INSERT INTO `district` VALUES ('2658', '惠济区', '3', '240', '0'); INSERT INTO `district` VALUES ('2659', '新密市', '3', '240', '0'); INSERT INTO `district` VALUES ('2660', '新郑市', '3', '240', '0'); INSERT INTO `district` VALUES ('2661', '登封市', '3', '240', '0'); INSERT INTO `district` VALUES ('2662', '管城回族区', '3', '240', '0'); INSERT INTO `district` VALUES ('2663', '荥阳市', '3', '240', '0'); INSERT INTO `district` VALUES ('2664', '金水区', '3', '240', '0'); INSERT INTO `district` VALUES ('2665', '兰考县', '3', '241', '0'); INSERT INTO `district` VALUES ('2666', '尉氏县', '3', '241', '0'); INSERT INTO `district` VALUES ('2667', '开封县', '3', '241', '0'); INSERT INTO `district` VALUES ('2668', '杞县', '3', '241', '0'); INSERT INTO `district` VALUES ('2669', '禹王台区', '3', '241', '0'); INSERT INTO `district` VALUES ('2670', '通许县', '3', '241', '0'); INSERT INTO `district` VALUES ('2671', '金明区', '3', '241', '0'); INSERT INTO `district` VALUES ('2672', '顺河回族区', '3', '241', '0'); INSERT INTO `district` VALUES ('2673', '鼓楼区', '3', '241', '0'); INSERT INTO `district` VALUES ('2674', '龙亭区', '3', '241', '0'); INSERT INTO `district` VALUES ('2675', '伊川县', '3', '242', '0'); INSERT INTO `district` VALUES ('2676', '偃师市', '3', '242', '0'); INSERT INTO `district` VALUES ('2677', '吉利区', '3', '242', '0'); INSERT INTO `district` VALUES ('2678', '孟津县', '3', '242', '0'); INSERT INTO `district` VALUES ('2679', '宜阳县', '3', '242', '0'); INSERT INTO `district` VALUES ('2680', '嵩县', '3', '242', '0'); INSERT INTO `district` VALUES ('2681', '新安县', '3', '242', '0'); INSERT INTO `district` VALUES ('2682', '栾川县', '3', '242', '0'); INSERT INTO `district` VALUES ('2683', '汝阳县', '3', '242', '0'); INSERT INTO `district` VALUES ('2684', '洛宁县', '3', '242', '0'); INSERT INTO `district` VALUES ('2685', '洛龙区', '3', '242', '0'); INSERT INTO `district` VALUES ('2686', '涧西区', '3', '242', '0'); INSERT INTO `district` VALUES ('2687', '瀍河回族区', '3', '242', '0'); INSERT INTO `district` VALUES ('2688', '老城区', '3', '242', '0'); INSERT INTO `district` VALUES ('2689', '西工区', '3', '242', '0'); INSERT INTO `district` VALUES ('2690', '卫东区', '3', '243', '0'); INSERT INTO `district` VALUES ('2691', '叶县', '3', '243', '0'); INSERT INTO `district` VALUES ('2692', '宝丰县', '3', '243', '0'); INSERT INTO `district` VALUES ('2693', '新华区', '3', '243', '0'); INSERT INTO `district` VALUES ('2694', '汝州市', '3', '243', '0'); INSERT INTO `district` VALUES ('2695', '湛河区', '3', '243', '0'); INSERT INTO `district` VALUES ('2696', '石龙区', '3', '243', '0'); INSERT INTO `district` VALUES ('2697', '舞钢市', '3', '243', '0'); INSERT INTO `district` VALUES ('2698', '郏县', '3', '243', '0'); INSERT INTO `district` VALUES ('2699', '鲁山县', '3', '243', '0'); INSERT INTO `district` VALUES ('2700', '内黄县', '3', '244', '0'); INSERT INTO `district` VALUES ('2701', '北关区', '3', '244', '0'); INSERT INTO `district` VALUES ('2702', '安阳县', '3', '244', '0'); INSERT INTO `district` VALUES ('2703', '文峰区', '3', '244', '0'); INSERT INTO `district` VALUES ('2704', '林州市', '3', '244', '0'); INSERT INTO `district` VALUES ('2705', '殷都区', '3', '244', '0'); INSERT INTO `district` VALUES ('2706', '汤阴县', '3', '244', '0'); INSERT INTO `district` VALUES ('2707', '滑县', '3', '244', '0'); INSERT INTO `district` VALUES ('2708', '龙安区', '3', '244', '0'); INSERT INTO `district` VALUES ('2709', '山城区', '3', '245', '0'); INSERT INTO `district` VALUES ('2710', '浚县', '3', '245', '0'); INSERT INTO `district` VALUES ('2711', '淇县', '3', '245', '0'); INSERT INTO `district` VALUES ('2712', '淇滨区', '3', '245', '0'); INSERT INTO `district` VALUES ('2713', '鹤山区', '3', '245', '0'); INSERT INTO `district` VALUES ('2714', '凤泉区', '3', '246', '0'); INSERT INTO `district` VALUES ('2715', '卫滨区', '3', '246', '0'); INSERT INTO `district` VALUES ('2716', '卫辉市', '3', '246', '0'); INSERT INTO `district` VALUES ('2717', '原阳县', '3', '246', '0'); INSERT INTO `district` VALUES ('2718', '封丘县', '3', '246', '0'); INSERT INTO `district` VALUES ('2719', '延津县', '3', '246', '0'); INSERT INTO `district` VALUES ('2720', '新乡县', '3', '246', '0'); INSERT INTO `district` VALUES ('2721', '牧野区', '3', '246', '0'); INSERT INTO `district` VALUES ('2722', '红旗区', '3', '246', '0'); INSERT INTO `district` VALUES ('2723', '获嘉县', '3', '246', '0'); INSERT INTO `district` VALUES ('2724', '辉县市', '3', '246', '0'); INSERT INTO `district` VALUES ('2725', '长垣县', '3', '246', '0'); INSERT INTO `district` VALUES ('2726', '中站区', '3', '247', '0'); INSERT INTO `district` VALUES ('2727', '修武县', '3', '247', '0'); INSERT INTO `district` VALUES ('2728', '博爱县', '3', '247', '0'); INSERT INTO `district` VALUES ('2729', '孟州市', '3', '247', '0'); INSERT INTO `district` VALUES ('2730', '山阳区', '3', '247', '0'); INSERT INTO `district` VALUES ('2731', '武陟县', '3', '247', '0'); INSERT INTO `district` VALUES ('2732', '沁阳市', '3', '247', '0'); INSERT INTO `district` VALUES ('2733', '温县', '3', '247', '0'); INSERT INTO `district` VALUES ('2734', '解放区', '3', '247', '0'); INSERT INTO `district` VALUES ('2735', '马村区', '3', '247', '0'); INSERT INTO `district` VALUES ('2736', '华龙区', '3', '248', '0'); INSERT INTO `district` VALUES ('2737', '南乐县', '3', '248', '0'); INSERT INTO `district` VALUES ('2738', '台前县', '3', '248', '0'); INSERT INTO `district` VALUES ('2739', '清丰县', '3', '248', '0'); INSERT INTO `district` VALUES ('2740', '濮阳县', '3', '248', '0'); INSERT INTO `district` VALUES ('2741', '范县', '3', '248', '0'); INSERT INTO `district` VALUES ('2742', '禹州市', '3', '249', '0'); INSERT INTO `district` VALUES ('2743', '襄城县', '3', '249', '0'); INSERT INTO `district` VALUES ('2744', '许昌县', '3', '249', '0'); INSERT INTO `district` VALUES ('2745', '鄢陵县', '3', '249', '0'); INSERT INTO `district` VALUES ('2746', '长葛市', '3', '249', '0'); INSERT INTO `district` VALUES ('2747', '魏都区', '3', '249', '0'); INSERT INTO `district` VALUES ('2748', '临颍县', '3', '250', '0'); INSERT INTO `district` VALUES ('2749', '召陵区', '3', '250', '0'); INSERT INTO `district` VALUES ('2750', '源汇区', '3', '250', '0'); INSERT INTO `district` VALUES ('2751', '舞阳县', '3', '250', '0'); INSERT INTO `district` VALUES ('2752', '郾城区', '3', '250', '0'); INSERT INTO `district` VALUES ('2753', '义马市', '3', '251', '0'); INSERT INTO `district` VALUES ('2754', '卢氏县', '3', '251', '0'); INSERT INTO `district` VALUES ('2755', '渑池县', '3', '251', '0'); INSERT INTO `district` VALUES ('2756', '湖滨区', '3', '251', '0'); INSERT INTO `district` VALUES ('2757', '灵宝市', '3', '251', '0'); INSERT INTO `district` VALUES ('2758', '陕县', '3', '251', '0'); INSERT INTO `district` VALUES ('2759', '内乡县', '3', '252', '0'); INSERT INTO `district` VALUES ('2760', '南召县', '3', '252', '0'); INSERT INTO `district` VALUES ('2761', '卧龙区', '3', '252', '0'); INSERT INTO `district` VALUES ('2762', '唐河县', '3', '252', '0'); INSERT INTO `district` VALUES ('2763', '宛城区', '3', '252', '0'); INSERT INTO `district` VALUES ('2764', '新野县', '3', '252', '0'); INSERT INTO `district` VALUES ('2765', '方城县', '3', '252', '0'); INSERT INTO `district` VALUES ('2766', '桐柏县', '3', '252', '0'); INSERT INTO `district` VALUES ('2767', '淅川县', '3', '252', '0'); INSERT INTO `district` VALUES ('2768', '社旗县', '3', '252', '0'); INSERT INTO `district` VALUES ('2769', '西峡县', '3', '252', '0'); INSERT INTO `district` VALUES ('2770', '邓州市', '3', '252', '0'); INSERT INTO `district` VALUES ('2771', '镇平县', '3', '252', '0'); INSERT INTO `district` VALUES ('2772', '夏邑县', '3', '253', '0'); INSERT INTO `district` VALUES ('2773', '宁陵县', '3', '253', '0'); INSERT INTO `district` VALUES ('2774', '柘城县', '3', '253', '0'); INSERT INTO `district` VALUES ('2775', '民权县', '3', '253', '0'); INSERT INTO `district` VALUES ('2776', '永城市', '3', '253', '0'); INSERT INTO `district` VALUES ('2777', '睢县', '3', '253', '0'); INSERT INTO `district` VALUES ('2778', '睢阳区', '3', '253', '0'); INSERT INTO `district` VALUES ('2779', '粱园区', '3', '253', '0'); INSERT INTO `district` VALUES ('2780', '虞城县', '3', '253', '0'); INSERT INTO `district` VALUES ('2781', '光山县', '3', '254', '0'); INSERT INTO `district` VALUES ('2782', '商城县', '3', '254', '0'); INSERT INTO `district` VALUES ('2783', '固始县', '3', '254', '0'); INSERT INTO `district` VALUES ('2784', '平桥区', '3', '254', '0'); INSERT INTO `district` VALUES ('2785', '息县', '3', '254', '0'); INSERT INTO `district` VALUES ('2786', '新县', '3', '254', '0'); INSERT INTO `district` VALUES ('2787', '浉河区', '3', '254', '0'); INSERT INTO `district` VALUES ('2788', '淮滨县', '3', '254', '0'); INSERT INTO `district` VALUES ('2789', '潢川县', '3', '254', '0'); INSERT INTO `district` VALUES ('2790', '罗山县', '3', '254', '0'); INSERT INTO `district` VALUES ('2791', '商水县', '3', '255', '0'); INSERT INTO `district` VALUES ('2792', '太康县', '3', '255', '0'); INSERT INTO `district` VALUES ('2793', '川汇区', '3', '255', '0'); INSERT INTO `district` VALUES ('2794', '扶沟县', '3', '255', '0'); INSERT INTO `district` VALUES ('2795', '沈丘县', '3', '255', '0'); INSERT INTO `district` VALUES ('2796', '淮阳县', '3', '255', '0'); INSERT INTO `district` VALUES ('2797', '西华县', '3', '255', '0'); INSERT INTO `district` VALUES ('2798', '郸城县', '3', '255', '0'); INSERT INTO `district` VALUES ('2799', '项城市', '3', '255', '0'); INSERT INTO `district` VALUES ('2800', '鹿邑县', '3', '255', '0'); INSERT INTO `district` VALUES ('2801', '上蔡县', '3', '256', '0'); INSERT INTO `district` VALUES ('2802', '平舆县', '3', '256', '0'); INSERT INTO `district` VALUES ('2803', '新蔡县', '3', '256', '0'); INSERT INTO `district` VALUES ('2804', '正阳县', '3', '256', '0'); INSERT INTO `district` VALUES ('2805', '汝南县', '3', '256', '0'); INSERT INTO `district` VALUES ('2806', '泌阳县', '3', '256', '0'); INSERT INTO `district` VALUES ('2807', '确山县', '3', '256', '0'); INSERT INTO `district` VALUES ('2808', '西平县', '3', '256', '0'); INSERT INTO `district` VALUES ('2809', '遂平县', '3', '256', '0'); INSERT INTO `district` VALUES ('2810', '驿城区', '3', '256', '0'); INSERT INTO `district` VALUES ('2811', '济源市', '3', '257', '0'); INSERT INTO `district` VALUES ('2812', '东西湖区', '3', '258', '0'); INSERT INTO `district` VALUES ('2813', '新洲区', '3', '258', '0'); INSERT INTO `district` VALUES ('2814', '武昌区', '3', '258', '0'); INSERT INTO `district` VALUES ('2815', '汉南区', '3', '258', '0'); INSERT INTO `district` VALUES ('2816', '汉阳区', '3', '258', '0'); INSERT INTO `district` VALUES ('2817', '江夏区', '3', '258', '0'); INSERT INTO `district` VALUES ('2818', '江岸区', '3', '258', '0'); INSERT INTO `district` VALUES ('2819', '江汉区', '3', '258', '0'); INSERT INTO `district` VALUES ('2820', '洪山区', '3', '258', '0'); INSERT INTO `district` VALUES ('2821', '硚口区', '3', '258', '0'); INSERT INTO `district` VALUES ('2822', '蔡甸区', '3', '258', '0'); INSERT INTO `district` VALUES ('2823', '青山区', '3', '258', '0'); INSERT INTO `district` VALUES ('2824', '黄陂区', '3', '258', '0'); INSERT INTO `district` VALUES ('2825', '下陆区', '3', '259', '0'); INSERT INTO `district` VALUES ('2826', '大冶市', '3', '259', '0'); INSERT INTO `district` VALUES ('2827', '西塞山区', '3', '259', '0'); INSERT INTO `district` VALUES ('2828', '铁山区', '3', '259', '0'); INSERT INTO `district` VALUES ('2829', '阳新县', '3', '259', '0'); INSERT INTO `district` VALUES ('2830', '黄石港区', '3', '259', '0'); INSERT INTO `district` VALUES ('2831', '丹江口市', '3', '260', '0'); INSERT INTO `district` VALUES ('2832', '张湾区', '3', '260', '0'); INSERT INTO `district` VALUES ('2833', '房县', '3', '260', '0'); INSERT INTO `district` VALUES ('2834', '竹山县', '3', '260', '0'); INSERT INTO `district` VALUES ('2835', '竹溪县', '3', '260', '0'); INSERT INTO `district` VALUES ('2836', '茅箭区', '3', '260', '0'); INSERT INTO `district` VALUES ('2837', '郧县', '3', '260', '0'); INSERT INTO `district` VALUES ('2838', '郧西县', '3', '260', '0'); INSERT INTO `district` VALUES ('2839', '五峰土家族自治县', '3', '261', '0'); INSERT INTO `district` VALUES ('2840', '伍家岗区', '3', '261', '0'); INSERT INTO `district` VALUES ('2841', '兴山县', '3', '261', '0'); INSERT INTO `district` VALUES ('2842', '夷陵区', '3', '261', '0'); INSERT INTO `district` VALUES ('2843', '宜都市', '3', '261', '0'); INSERT INTO `district` VALUES ('2844', '当阳市', '3', '261', '0'); INSERT INTO `district` VALUES ('2845', '枝江市', '3', '261', '0'); INSERT INTO `district` VALUES ('2846', '点军区', '3', '261', '0'); INSERT INTO `district` VALUES ('2847', '秭归县', '3', '261', '0'); INSERT INTO `district` VALUES ('2848', '虢亭区', '3', '261', '0'); INSERT INTO `district` VALUES ('2849', '西陵区', '3', '261', '0'); INSERT INTO `district` VALUES ('2850', '远安县', '3', '261', '0'); INSERT INTO `district` VALUES ('2851', '长阳土家族自治县', '3', '261', '0'); INSERT INTO `district` VALUES ('2852', '保康县', '3', '262', '0'); INSERT INTO `district` VALUES ('2853', '南漳县', '3', '262', '0'); INSERT INTO `district` VALUES ('2854', '宜城市', '3', '262', '0'); INSERT INTO `district` VALUES ('2855', '枣阳市', '3', '262', '0'); INSERT INTO `district` VALUES ('2856', '樊城区', '3', '262', '0'); INSERT INTO `district` VALUES ('2857', '老河口市', '3', '262', '0'); INSERT INTO `district` VALUES ('2858', '襄城区', '3', '262', '0'); INSERT INTO `district` VALUES ('2859', '襄阳区', '3', '262', '0'); INSERT INTO `district` VALUES ('2860', '谷城县', '3', '262', '0'); INSERT INTO `district` VALUES ('2861', '华容区', '3', '263', '0'); INSERT INTO `district` VALUES ('2862', '粱子湖', '3', '263', '0'); INSERT INTO `district` VALUES ('2863', '鄂城区', '3', '263', '0'); INSERT INTO `district` VALUES ('2864', '东宝区', '3', '264', '0'); INSERT INTO `district` VALUES ('2865', '京山县', '3', '264', '0'); INSERT INTO `district` VALUES ('2866', '掇刀区', '3', '264', '0'); INSERT INTO `district` VALUES ('2867', '沙洋县', '3', '264', '0'); INSERT INTO `district` VALUES ('2868', '钟祥市', '3', '264', '0'); INSERT INTO `district` VALUES ('2869', '云梦县', '3', '265', '0'); INSERT INTO `district` VALUES ('2870', '大悟县', '3', '265', '0'); INSERT INTO `district` VALUES ('2871', '孝南区', '3', '265', '0'); INSERT INTO `district` VALUES ('2872', '孝昌县', '3', '265', '0'); INSERT INTO `district` VALUES ('2873', '安陆市', '3', '265', '0'); INSERT INTO `district` VALUES ('2874', '应城市', '3', '265', '0'); INSERT INTO `district` VALUES ('2875', '汉川市', '3', '265', '0'); INSERT INTO `district` VALUES ('2876', '公安县', '3', '266', '0'); INSERT INTO `district` VALUES ('2877', '松滋市', '3', '266', '0'); INSERT INTO `district` VALUES ('2878', '江陵县', '3', '266', '0'); INSERT INTO `district` VALUES ('2879', '沙市区', '3', '266', '0'); INSERT INTO `district` VALUES ('2880', '洪湖市', '3', '266', '0'); INSERT INTO `district` VALUES ('2881', '监利县', '3', '266', '0'); INSERT INTO `district` VALUES ('2882', '石首市', '3', '266', '0'); INSERT INTO `district` VALUES ('2883', '荆州区', '3', '266', '0'); INSERT INTO `district` VALUES ('2884', '团风县', '3', '267', '0'); INSERT INTO `district` VALUES ('2885', '武穴市', '3', '267', '0'); INSERT INTO `district` VALUES ('2886', '浠水县', '3', '267', '0'); INSERT INTO `district` VALUES ('2887', '红安县', '3', '267', '0'); INSERT INTO `district` VALUES ('2888', '罗田县', '3', '267', '0'); INSERT INTO `district` VALUES ('2889', '英山县', '3', '267', '0'); INSERT INTO `district` VALUES ('2890', '蕲春县', '3', '267', '0'); INSERT INTO `district` VALUES ('2891', '麻城市', '3', '267', '0'); INSERT INTO `district` VALUES ('2892', '黄州区', '3', '267', '0'); INSERT INTO `district` VALUES ('2893', '黄梅县', '3', '267', '0'); INSERT INTO `district` VALUES ('2894', '咸安区', '3', '268', '0'); INSERT INTO `district` VALUES ('2895', '嘉鱼县', '3', '268', '0'); INSERT INTO `district` VALUES ('2896', '崇阳县', '3', '268', '0'); INSERT INTO `district` VALUES ('2897', '赤壁市', '3', '268', '0'); INSERT INTO `district` VALUES ('2898', '通城县', '3', '268', '0'); INSERT INTO `district` VALUES ('2899', '通山县', '3', '268', '0'); INSERT INTO `district` VALUES ('2900', '广水市', '3', '269', '0'); INSERT INTO `district` VALUES ('2901', '曾都区', '3', '269', '0'); INSERT INTO `district` VALUES ('2902', '利川市', '3', '270', '0'); INSERT INTO `district` VALUES ('2903', '咸丰县', '3', '270', '0'); INSERT INTO `district` VALUES ('2904', '宣恩县', '3', '270', '0'); INSERT INTO `district` VALUES ('2905', '巴东县', '3', '270', '0'); INSERT INTO `district` VALUES ('2906', '建始县', '3', '270', '0'); INSERT INTO `district` VALUES ('2907', '恩施市', '3', '270', '0'); INSERT INTO `district` VALUES ('2908', '来凤县', '3', '270', '0'); INSERT INTO `district` VALUES ('2909', '鹤峰县', '3', '270', '0'); INSERT INTO `district` VALUES ('2910', '仙桃市', '3', '271', '0'); INSERT INTO `district` VALUES ('2911', '潜江市', '3', '272', '0'); INSERT INTO `district` VALUES ('2913', '神农架林区', '3', '274', '0'); INSERT INTO `district` VALUES ('2914', '天心区', '3', '275', '0'); INSERT INTO `district` VALUES ('2915', '宁乡县', '3', '275', '0'); INSERT INTO `district` VALUES ('2916', '岳麓区', '3', '275', '0'); INSERT INTO `district` VALUES ('2917', '开福区', '3', '275', '0'); INSERT INTO `district` VALUES ('2918', '望城县', '3', '275', '0'); INSERT INTO `district` VALUES ('2919', '浏阳市', '3', '275', '0'); INSERT INTO `district` VALUES ('2920', '芙蓉区', '3', '275', '0'); INSERT INTO `district` VALUES ('2921', '长沙县', '3', '275', '0'); INSERT INTO `district` VALUES ('2922', '雨花区', '3', '275', '0'); INSERT INTO `district` VALUES ('2923', '天元区', '3', '276', '0'); INSERT INTO `district` VALUES ('2924', '攸县', '3', '276', '0'); INSERT INTO `district` VALUES ('2925', '株洲县', '3', '276', '0'); INSERT INTO `district` VALUES ('2926', '炎陵县', '3', '276', '0'); INSERT INTO `district` VALUES ('2927', '石峰区', '3', '276', '0'); INSERT INTO `district` VALUES ('2928', '芦淞区', '3', '276', '0'); INSERT INTO `district` VALUES ('2929', '茶陵县', '3', '276', '0'); INSERT INTO `district` VALUES ('2930', '荷塘区', '3', '276', '0'); INSERT INTO `district` VALUES ('2931', '醴陵市', '3', '276', '0'); INSERT INTO `district` VALUES ('2932', '岳塘区', '3', '277', '0'); INSERT INTO `district` VALUES ('2933', '湘乡市', '3', '277', '0'); INSERT INTO `district` VALUES ('2934', '湘潭县', '3', '277', '0'); INSERT INTO `district` VALUES ('2935', '雨湖区', '3', '277', '0'); INSERT INTO `district` VALUES ('2936', '韶山市', '3', '277', '0'); INSERT INTO `district` VALUES ('2937', '南岳区', '3', '278', '0'); INSERT INTO `district` VALUES ('2938', '常宁市', '3', '278', '0'); INSERT INTO `district` VALUES ('2939', '珠晖区', '3', '278', '0'); INSERT INTO `district` VALUES ('2940', '石鼓区', '3', '278', '0'); INSERT INTO `district` VALUES ('2941', '祁东县', '3', '278', '0'); INSERT INTO `district` VALUES ('2942', '耒阳市', '3', '278', '0'); INSERT INTO `district` VALUES ('2943', '蒸湘区', '3', '278', '0'); INSERT INTO `district` VALUES ('2944', '衡东县', '3', '278', '0'); INSERT INTO `district` VALUES ('2945', '衡南县', '3', '278', '0'); INSERT INTO `district` VALUES ('2946', '衡山县', '3', '278', '0'); INSERT INTO `district` VALUES ('2947', '衡阳县', '3', '278', '0'); INSERT INTO `district` VALUES ('2948', '雁峰区', '3', '278', '0'); INSERT INTO `district` VALUES ('2949', '北塔区', '3', '279', '0'); INSERT INTO `district` VALUES ('2950', '双清区', '3', '279', '0'); INSERT INTO `district` VALUES ('2951', '城步苗族自治县', '3', '279', '0'); INSERT INTO `district` VALUES ('2952', '大祥区', '3', '279', '0'); INSERT INTO `district` VALUES ('2953', '新宁县', '3', '279', '0'); INSERT INTO `district` VALUES ('2954', '新邵县', '3', '279', '0'); INSERT INTO `district` VALUES ('2955', '武冈市', '3', '279', '0'); INSERT INTO `district` VALUES ('2956', '洞口县', '3', '279', '0'); INSERT INTO `district` VALUES ('2957', '绥宁县', '3', '279', '0'); INSERT INTO `district` VALUES ('2958', '邵东县', '3', '279', '0'); INSERT INTO `district` VALUES ('2959', '邵阳县', '3', '279', '0'); INSERT INTO `district` VALUES ('2960', '隆回县', '3', '279', '0'); INSERT INTO `district` VALUES ('2961', '临湘市', '3', '280', '0'); INSERT INTO `district` VALUES ('2962', '云溪区', '3', '280', '0'); INSERT INTO `district` VALUES ('2963', '华容县', '3', '280', '0'); INSERT INTO `district` VALUES ('2964', '君山区', '3', '280', '0'); INSERT INTO `district` VALUES ('2965', '岳阳县', '3', '280', '0'); INSERT INTO `district` VALUES ('2966', '岳阳楼区', '3', '280', '0'); INSERT INTO `district` VALUES ('2967', '平江县', '3', '280', '0'); INSERT INTO `district` VALUES ('2968', '汨罗市', '3', '280', '0'); INSERT INTO `district` VALUES ('2969', '湘阴县', '3', '280', '0'); INSERT INTO `district` VALUES ('2970', '临澧县', '3', '281', '0'); INSERT INTO `district` VALUES ('2971', '安乡县', '3', '281', '0'); INSERT INTO `district` VALUES ('2972', '桃源县', '3', '281', '0'); INSERT INTO `district` VALUES ('2973', '武陵区', '3', '281', '0'); INSERT INTO `district` VALUES ('2974', '汉寿县', '3', '281', '0'); INSERT INTO `district` VALUES ('2975', '津市市', '3', '281', '0'); INSERT INTO `district` VALUES ('2976', '澧县', '3', '281', '0'); INSERT INTO `district` VALUES ('2977', '石门县', '3', '281', '0'); INSERT INTO `district` VALUES ('2978', '鼎城区', '3', '281', '0'); INSERT INTO `district` VALUES ('2979', '慈利县', '3', '282', '0'); INSERT INTO `district` VALUES ('2980', '桑植县', '3', '282', '0'); INSERT INTO `district` VALUES ('2981', '武陵源区', '3', '282', '0'); INSERT INTO `district` VALUES ('2982', '永定区', '3', '282', '0'); INSERT INTO `district` VALUES ('2983', '南县', '3', '283', '0'); INSERT INTO `district` VALUES ('2984', '安化县', '3', '283', '0'); INSERT INTO `district` VALUES ('2985', '桃江县', '3', '283', '0'); INSERT INTO `district` VALUES ('2986', '沅江市', '3', '283', '0'); INSERT INTO `district` VALUES ('2987', '资阳区', '3', '283', '0'); INSERT INTO `district` VALUES ('2988', '赫山区', '3', '283', '0'); INSERT INTO `district` VALUES ('2989', '临武县', '3', '284', '0'); INSERT INTO `district` VALUES ('2990', '北湖区', '3', '284', '0'); INSERT INTO `district` VALUES ('2991', '嘉禾县', '3', '284', '0'); INSERT INTO `district` VALUES ('2992', '安仁县', '3', '284', '0'); INSERT INTO `district` VALUES ('2993', '宜章县', '3', '284', '0'); INSERT INTO `district` VALUES ('2994', '桂东县', '3', '284', '0'); INSERT INTO `district` VALUES ('2995', '桂阳县', '3', '284', '0'); INSERT INTO `district` VALUES ('2996', '永兴县', '3', '284', '0'); INSERT INTO `district` VALUES ('2997', '汝城县', '3', '284', '0'); INSERT INTO `district` VALUES ('2998', '苏仙区', '3', '284', '0'); INSERT INTO `district` VALUES ('2999', '资兴市', '3', '284', '0'); INSERT INTO `district` VALUES ('3000', '东安县', '3', '285', '0'); INSERT INTO `district` VALUES ('3001', '冷水滩区', '3', '285', '0'); INSERT INTO `district` VALUES ('3002', '双牌县', '3', '285', '0'); INSERT INTO `district` VALUES ('3003', '宁远县', '3', '285', '0'); INSERT INTO `district` VALUES ('3004', '新田县', '3', '285', '0'); INSERT INTO `district` VALUES ('3005', '江华瑶族自治县', '3', '285', '0'); INSERT INTO `district` VALUES ('3006', '江永县', '3', '285', '0'); INSERT INTO `district` VALUES ('3007', '祁阳县', '3', '285', '0'); INSERT INTO `district` VALUES ('3008', '蓝山县', '3', '285', '0'); INSERT INTO `district` VALUES ('3009', '道县', '3', '285', '0'); INSERT INTO `district` VALUES ('3010', '零陵区', '3', '285', '0'); INSERT INTO `district` VALUES ('3011', '中方县', '3', '286', '0'); INSERT INTO `district` VALUES ('3012', '会同县', '3', '286', '0'); INSERT INTO `district` VALUES ('3013', '新晃侗族自治县', '3', '286', '0'); INSERT INTO `district` VALUES ('3014', '沅陵县', '3', '286', '0'); INSERT INTO `district` VALUES ('3015', '洪江市/洪江区', '3', '286', '0'); INSERT INTO `district` VALUES ('3016', '溆浦县', '3', '286', '0'); INSERT INTO `district` VALUES ('3017', '芷江侗族自治县', '3', '286', '0'); INSERT INTO `district` VALUES ('3018', '辰溪县', '3', '286', '0'); INSERT INTO `district` VALUES ('3019', '通道侗族自治县', '3', '286', '0'); INSERT INTO `district` VALUES ('3020', '靖州苗族侗族自治县', '3', '286', '0'); INSERT INTO `district` VALUES ('3021', '鹤城区', '3', '286', '0'); INSERT INTO `district` VALUES ('3022', '麻阳苗族自治县', '3', '286', '0'); INSERT INTO `district` VALUES ('3023', '冷水江市', '3', '287', '0'); INSERT INTO `district` VALUES ('3024', '双峰县', '3', '287', '0'); INSERT INTO `district` VALUES ('3025', '娄星区', '3', '287', '0'); INSERT INTO `district` VALUES ('3026', '新化县', '3', '287', '0'); INSERT INTO `district` VALUES ('3027', '涟源市', '3', '287', '0'); INSERT INTO `district` VALUES ('3028', '保靖县', '3', '288', '0'); INSERT INTO `district` VALUES ('3029', '凤凰县', '3', '288', '0'); INSERT INTO `district` VALUES ('3030', '古丈县', '3', '288', '0'); INSERT INTO `district` VALUES ('3031', '吉首市', '3', '288', '0'); INSERT INTO `district` VALUES ('3032', '永顺县', '3', '288', '0'); INSERT INTO `district` VALUES ('3033', '泸溪县', '3', '288', '0'); INSERT INTO `district` VALUES ('3034', '花垣县', '3', '288', '0'); INSERT INTO `district` VALUES ('3035', '龙山县', '3', '288', '0'); INSERT INTO `district` VALUES ('3036', '萝岗区', '3', '289', '0'); INSERT INTO `district` VALUES ('3037', '南沙区', '3', '289', '0'); INSERT INTO `district` VALUES ('3038', '从化市', '3', '289', '0'); INSERT INTO `district` VALUES ('3039', '增城市', '3', '289', '0'); INSERT INTO `district` VALUES ('3040', '天河区', '3', '289', '0'); INSERT INTO `district` VALUES ('3041', '海珠区', '3', '289', '0'); INSERT INTO `district` VALUES ('3042', '番禺区', '3', '289', '0'); INSERT INTO `district` VALUES ('3043', '白云区', '3', '289', '0'); INSERT INTO `district` VALUES ('3044', '花都区', '3', '289', '0'); INSERT INTO `district` VALUES ('3045', '荔湾区', '3', '289', '0'); INSERT INTO `district` VALUES ('3046', '越秀区', '3', '289', '0'); INSERT INTO `district` VALUES ('3047', '黄埔区', '3', '289', '0'); INSERT INTO `district` VALUES ('3048', '乐昌市', '3', '290', '0'); INSERT INTO `district` VALUES ('3049', '乳源瑶族自治县', '3', '290', '0'); INSERT INTO `district` VALUES ('3050', '仁化县', '3', '290', '0'); INSERT INTO `district` VALUES ('3051', '南雄市', '3', '290', '0'); INSERT INTO `district` VALUES ('3052', '始兴县', '3', '290', '0'); INSERT INTO `district` VALUES ('3053', '新丰县', '3', '290', '0'); INSERT INTO `district` VALUES ('3054', '曲江区', '3', '290', '0'); INSERT INTO `district` VALUES ('3055', '武江区', '3', '290', '0'); INSERT INTO `district` VALUES ('3056', '浈江区', '3', '290', '0'); INSERT INTO `district` VALUES ('3057', '翁源县', '3', '290', '0'); INSERT INTO `district` VALUES ('3058', '南山区', '3', '291', '0'); INSERT INTO `district` VALUES ('3059', '宝安区', '3', '291', '0'); INSERT INTO `district` VALUES ('3060', '盐田区', '3', '291', '0'); INSERT INTO `district` VALUES ('3061', '福田区', '3', '291', '0'); INSERT INTO `district` VALUES ('3062', '罗湖区', '3', '291', '0'); INSERT INTO `district` VALUES ('3063', '龙岗区', '3', '291', '0'); INSERT INTO `district` VALUES ('3064', '斗门区', '3', '292', '0'); INSERT INTO `district` VALUES ('3065', '金湾区', '3', '292', '0'); INSERT INTO `district` VALUES ('3066', '香洲区', '3', '292', '0'); INSERT INTO `district` VALUES ('3067', '南澳县', '3', '293', '0'); INSERT INTO `district` VALUES ('3068', '潮南区', '3', '293', '0'); INSERT INTO `district` VALUES ('3069', '潮阳区', '3', '293', '0'); INSERT INTO `district` VALUES ('3070', '澄海区', '3', '293', '0'); INSERT INTO `district` VALUES ('3071', '濠江区', '3', '293', '0'); INSERT INTO `district` VALUES ('3072', '金平区', '3', '293', '0'); INSERT INTO `district` VALUES ('3073', '龙湖区', '3', '293', '0'); INSERT INTO `district` VALUES ('3074', '三水区', '3', '294', '0'); INSERT INTO `district` VALUES ('3075', '南海区', '3', '294', '0'); INSERT INTO `district` VALUES ('3076', '禅城区', '3', '294', '0'); INSERT INTO `district` VALUES ('3077', '顺德区', '3', '294', '0'); INSERT INTO `district` VALUES ('3078', '高明区', '3', '294', '0'); INSERT INTO `district` VALUES ('3079', '台山市', '3', '295', '0'); INSERT INTO `district` VALUES ('3080', '开平市', '3', '295', '0'); INSERT INTO `district` VALUES ('3081', '恩平市', '3', '295', '0'); INSERT INTO `district` VALUES ('3082', '新会区', '3', '295', '0'); INSERT INTO `district` VALUES ('3083', '江海区', '3', '295', '0'); INSERT INTO `district` VALUES ('3084', '蓬江区', '3', '295', '0'); INSERT INTO `district` VALUES ('3085', '鹤山市', '3', '295', '0'); INSERT INTO `district` VALUES ('3086', '吴川市', '3', '296', '0'); INSERT INTO `district` VALUES ('3087', '坡头区', '3', '296', '0'); INSERT INTO `district` VALUES ('3088', '廉江市', '3', '296', '0'); INSERT INTO `district` VALUES ('3089', '徐闻县', '3', '296', '0'); INSERT INTO `district` VALUES ('3090', '赤坎区', '3', '296', '0'); INSERT INTO `district` VALUES ('3091', '遂溪县', '3', '296', '0'); INSERT INTO `district` VALUES ('3092', '雷州市', '3', '296', '0'); INSERT INTO `district` VALUES ('3093', '霞山区', '3', '296', '0'); INSERT INTO `district` VALUES ('3094', '麻章区', '3', '296', '0'); INSERT INTO `district` VALUES ('3095', '信宜市', '3', '297', '0'); INSERT INTO `district` VALUES ('3096', '化州市', '3', '297', '0'); INSERT INTO `district` VALUES ('3097', '电白县', '3', '297', '0'); INSERT INTO `district` VALUES ('3098', '茂南区', '3', '297', '0'); INSERT INTO `district` VALUES ('3099', '茂港区', '3', '297', '0'); INSERT INTO `district` VALUES ('3100', '高州市', '3', '297', '0'); INSERT INTO `district` VALUES ('3101', '四会市', '3', '298', '0'); INSERT INTO `district` VALUES ('3102', '封开县', '3', '298', '0'); INSERT INTO `district` VALUES ('3103', '广宁县', '3', '298', '0'); INSERT INTO `district` VALUES ('3104', '德庆县', '3', '298', '0'); INSERT INTO `district` VALUES ('3105', '怀集县', '3', '298', '0'); INSERT INTO `district` VALUES ('3106', '端州区', '3', '298', '0'); INSERT INTO `district` VALUES ('3107', '高要市', '3', '298', '0'); INSERT INTO `district` VALUES ('3108', '鼎湖区', '3', '298', '0'); INSERT INTO `district` VALUES ('3109', '博罗县', '3', '299', '0'); INSERT INTO `district` VALUES ('3110', '惠东县', '3', '299', '0'); INSERT INTO `district` VALUES ('3111', '惠城区', '3', '299', '0'); INSERT INTO `district` VALUES ('3112', '惠阳区', '3', '299', '0'); INSERT INTO `district` VALUES ('3113', '龙门县', '3', '299', '0'); INSERT INTO `district` VALUES ('3114', '丰顺县', '3', '300', '0'); INSERT INTO `district` VALUES ('3115', '五华县', '3', '300', '0'); INSERT INTO `district` VALUES ('3116', '兴宁市', '3', '300', '0'); INSERT INTO `district` VALUES ('3117', '大埔县', '3', '300', '0'); INSERT INTO `district` VALUES ('3118', '平远县', '3', '300', '0'); INSERT INTO `district` VALUES ('3119', '梅县', '3', '300', '0'); INSERT INTO `district` VALUES ('3120', '梅江区', '3', '300', '0'); INSERT INTO `district` VALUES ('3121', '蕉岭县', '3', '300', '0'); INSERT INTO `district` VALUES ('3122', '城区', '3', '301', '0'); INSERT INTO `district` VALUES ('3123', '海丰县', '3', '301', '0'); INSERT INTO `district` VALUES ('3124', '陆丰市', '3', '301', '0'); INSERT INTO `district` VALUES ('3125', '陆河县', '3', '301', '0'); INSERT INTO `district` VALUES ('3126', '东源县', '3', '302', '0'); INSERT INTO `district` VALUES ('3127', '和平县', '3', '302', '0'); INSERT INTO `district` VALUES ('3128', '源城区', '3', '302', '0'); INSERT INTO `district` VALUES ('3129', '紫金县', '3', '302', '0'); INSERT INTO `district` VALUES ('3130', '连平县', '3', '302', '0'); INSERT INTO `district` VALUES ('3131', '龙川县', '3', '302', '0'); INSERT INTO `district` VALUES ('3132', '江城区', '3', '303', '0'); INSERT INTO `district` VALUES ('3133', '阳东县', '3', '303', '0'); INSERT INTO `district` VALUES ('3134', '阳春市', '3', '303', '0'); INSERT INTO `district` VALUES ('3135', '阳西县', '3', '303', '0'); INSERT INTO `district` VALUES ('3136', '佛冈县', '3', '304', '0'); INSERT INTO `district` VALUES ('3137', '清城区', '3', '304', '0'); INSERT INTO `district` VALUES ('3138', '清新县', '3', '304', '0'); INSERT INTO `district` VALUES ('3139', '英德市', '3', '304', '0'); INSERT INTO `district` VALUES ('3140', '连南瑶族自治县', '3', '304', '0'); INSERT INTO `district` VALUES ('3141', '连山壮族瑶族自治县', '3', '304', '0'); INSERT INTO `district` VALUES ('3142', '连州市', '3', '304', '0'); INSERT INTO `district` VALUES ('3143', '阳山县', '3', '304', '0'); INSERT INTO `district` VALUES ('3146', '湘桥区', '3', '307', '0'); INSERT INTO `district` VALUES ('3147', '潮安县', '3', '307', '0'); INSERT INTO `district` VALUES ('3148', '饶平县', '3', '307', '0'); INSERT INTO `district` VALUES ('3149', '惠来县', '3', '308', '0'); INSERT INTO `district` VALUES ('3150', '揭东县', '3', '308', '0'); INSERT INTO `district` VALUES ('3151', '揭西县', '3', '308', '0'); INSERT INTO `district` VALUES ('3152', '普宁市', '3', '308', '0'); INSERT INTO `district` VALUES ('3153', '榕城区', '3', '308', '0'); INSERT INTO `district` VALUES ('3154', '云城区', '3', '309', '0'); INSERT INTO `district` VALUES ('3155', '云安县', '3', '309', '0'); INSERT INTO `district` VALUES ('3156', '新兴县', '3', '309', '0'); INSERT INTO `district` VALUES ('3157', '罗定市', '3', '309', '0'); INSERT INTO `district` VALUES ('3158', '郁南县', '3', '309', '0'); INSERT INTO `district` VALUES ('3159', '上林县', '3', '310', '0'); INSERT INTO `district` VALUES ('3160', '兴宁区', '3', '310', '0'); INSERT INTO `district` VALUES ('3161', '宾阳县', '3', '310', '0'); INSERT INTO `district` VALUES ('3162', '横县', '3', '310', '0'); INSERT INTO `district` VALUES ('3163', '武鸣县', '3', '310', '0'); INSERT INTO `district` VALUES ('3164', '江南区', '3', '310', '0'); INSERT INTO `district` VALUES ('3165', '良庆区', '3', '310', '0'); INSERT INTO `district` VALUES ('3166', '西乡塘区', '3', '310', '0'); INSERT INTO `district` VALUES ('3167', '邕宁区', '3', '310', '0'); INSERT INTO `district` VALUES ('3168', '隆安县', '3', '310', '0'); INSERT INTO `district` VALUES ('3169', '青秀区', '3', '310', '0'); INSERT INTO `district` VALUES ('3170', '马山县', '3', '310', '0'); INSERT INTO `district` VALUES ('3171', '三江侗族自治县', '3', '311', '0'); INSERT INTO `district` VALUES ('3172', '城中区', '3', '311', '0'); INSERT INTO `district` VALUES ('3173', '柳北区', '3', '311', '0'); INSERT INTO `district` VALUES ('3174', '柳南区', '3', '311', '0'); INSERT INTO `district` VALUES ('3175', '柳城县', '3', '311', '0'); INSERT INTO `district` VALUES ('3176', '柳江县', '3', '311', '0'); INSERT INTO `district` VALUES ('3177', '融安县', '3', '311', '0'); INSERT INTO `district` VALUES ('3178', '融水苗族自治县', '3', '311', '0'); INSERT INTO `district` VALUES ('3179', '鱼峰区', '3', '311', '0'); INSERT INTO `district` VALUES ('3180', '鹿寨县', '3', '311', '0'); INSERT INTO `district` VALUES ('3181', '七星区', '3', '312', '0'); INSERT INTO `district` VALUES ('3182', '临桂县', '3', '312', '0'); INSERT INTO `district` VALUES ('3183', '全州县', '3', '312', '0'); INSERT INTO `district` VALUES ('3184', '兴安县', '3', '312', '0'); INSERT INTO `district` VALUES ('3185', '叠彩区', '3', '312', '0'); INSERT INTO `district` VALUES ('3186', '平乐县', '3', '312', '0'); INSERT INTO `district` VALUES ('3187', '恭城瑶族自治县', '3', '312', '0'); INSERT INTO `district` VALUES ('3188', '永福县', '3', '312', '0'); INSERT INTO `district` VALUES ('3189', '灌阳县', '3', '312', '0'); INSERT INTO `district` VALUES ('3190', '灵川县', '3', '312', '0'); INSERT INTO `district` VALUES ('3191', '秀峰区', '3', '312', '0'); INSERT INTO `district` VALUES ('3192', '荔浦县', '3', '312', '0'); INSERT INTO `district` VALUES ('3193', '象山区', '3', '312', '0'); INSERT INTO `district` VALUES ('3194', '资源县', '3', '312', '0'); INSERT INTO `district` VALUES ('3195', '阳朔县', '3', '312', '0'); INSERT INTO `district` VALUES ('3196', '雁山区', '3', '312', '0'); INSERT INTO `district` VALUES ('3197', '龙胜各族自治县', '3', '312', '0'); INSERT INTO `district` VALUES ('3198', '万秀区', '3', '313', '0'); INSERT INTO `district` VALUES ('3199', '岑溪市', '3', '313', '0'); INSERT INTO `district` VALUES ('3200', '苍梧县', '3', '313', '0'); INSERT INTO `district` VALUES ('3201', '蒙山县', '3', '313', '0'); INSERT INTO `district` VALUES ('3202', '藤县', '3', '313', '0'); INSERT INTO `district` VALUES ('3203', '蝶山区', '3', '313', '0'); INSERT INTO `district` VALUES ('3204', '长洲区', '3', '313', '0'); INSERT INTO `district` VALUES ('3205', '合浦县', '3', '314', '0'); INSERT INTO `district` VALUES ('3206', '海城区', '3', '314', '0'); INSERT INTO `district` VALUES ('3207', '铁山港区', '3', '314', '0'); INSERT INTO `district` VALUES ('3208', '银海区', '3', '314', '0'); INSERT INTO `district` VALUES ('3209', '上思县', '3', '315', '0'); INSERT INTO `district` VALUES ('3210', '东兴市', '3', '315', '0'); INSERT INTO `district` VALUES ('3211', '港口区', '3', '315', '0'); INSERT INTO `district` VALUES ('3212', '防城区', '3', '315', '0'); INSERT INTO `district` VALUES ('3213', '浦北县', '3', '316', '0'); INSERT INTO `district` VALUES ('3214', '灵山县', '3', '316', '0'); INSERT INTO `district` VALUES ('3215', '钦北区', '3', '316', '0'); INSERT INTO `district` VALUES ('3216', '钦南区', '3', '316', '0'); INSERT INTO `district` VALUES ('3217', '平南县', '3', '317', '0'); INSERT INTO `district` VALUES ('3218', '桂平市', '3', '317', '0'); INSERT INTO `district` VALUES ('3219', '港北区', '3', '317', '0'); INSERT INTO `district` VALUES ('3220', '港南区', '3', '317', '0'); INSERT INTO `district` VALUES ('3221', '覃塘区', '3', '317', '0'); INSERT INTO `district` VALUES ('3222', '兴业县', '3', '318', '0'); INSERT INTO `district` VALUES ('3223', '北流市', '3', '318', '0'); INSERT INTO `district` VALUES ('3224', '博白县', '3', '318', '0'); INSERT INTO `district` VALUES ('3225', '容县', '3', '318', '0'); INSERT INTO `district` VALUES ('3226', '玉州区', '3', '318', '0'); INSERT INTO `district` VALUES ('3227', '陆川县', '3', '318', '0'); INSERT INTO `district` VALUES ('3228', '乐业县', '3', '319', '0'); INSERT INTO `district` VALUES ('3229', '凌云县', '3', '319', '0'); INSERT INTO `district` VALUES ('3230', '右江区', '3', '319', '0'); INSERT INTO `district` VALUES ('3231', '平果县', '3', '319', '0'); INSERT INTO `district` VALUES ('3232', '德保县', '3', '319', '0'); INSERT INTO `district` VALUES ('3233', '田东县', '3', '319', '0'); INSERT INTO `district` VALUES ('3234', '田林县', '3', '319', '0'); INSERT INTO `district` VALUES ('3235', '田阳县', '3', '319', '0'); INSERT INTO `district` VALUES ('3236', '西林县', '3', '319', '0'); INSERT INTO `district` VALUES ('3237', '那坡县', '3', '319', '0'); INSERT INTO `district` VALUES ('3238', '隆林各族自治县', '3', '319', '0'); INSERT INTO `district` VALUES ('3239', '靖西县', '3', '319', '0'); INSERT INTO `district` VALUES ('3240', '八步区', '3', '320', '0'); INSERT INTO `district` VALUES ('3241', '富川瑶族自治县', '3', '320', '0'); INSERT INTO `district` VALUES ('3242', '昭平县', '3', '320', '0'); INSERT INTO `district` VALUES ('3243', '钟山县', '3', '320', '0'); INSERT INTO `district` VALUES ('3244', '东兰县', '3', '321', '0'); INSERT INTO `district` VALUES ('3245', '凤山县', '3', '321', '0'); INSERT INTO `district` VALUES ('3246', '南丹县', '3', '321', '0'); INSERT INTO `district` VALUES ('3247', '大化瑶族自治县', '3', '321', '0'); INSERT INTO `district` VALUES ('3248', '天峨县', '3', '321', '0'); INSERT INTO `district` VALUES ('3249', '宜州市', '3', '321', '0'); INSERT INTO `district` VALUES ('3250', '巴马瑶族自治县', '3', '321', '0'); INSERT INTO `district` VALUES ('3251', '环江毛南族自治县', '3', '321', '0'); INSERT INTO `district` VALUES ('3252', '罗城仫佬族自治县', '3', '321', '0'); INSERT INTO `district` VALUES ('3253', '都安瑶族自治县', '3', '321', '0'); INSERT INTO `district` VALUES ('3254', '金城江区', '3', '321', '0'); INSERT INTO `district` VALUES ('3255', '兴宾区', '3', '322', '0'); INSERT INTO `district` VALUES ('3256', '合山市', '3', '322', '0'); INSERT INTO `district` VALUES ('3257', '忻城县', '3', '322', '0'); INSERT INTO `district` VALUES ('3258', '武宣县', '3', '322', '0'); INSERT INTO `district` VALUES ('3259', '象州县', '3', '322', '0'); INSERT INTO `district` VALUES ('3260', '金秀瑶族自治县', '3', '322', '0'); INSERT INTO `district` VALUES ('3261', '凭祥市', '3', '323', '0'); INSERT INTO `district` VALUES ('3262', '大新县', '3', '323', '0'); INSERT INTO `district` VALUES ('3263', '天等县', '3', '323', '0'); INSERT INTO `district` VALUES ('3264', '宁明县', '3', '323', '0'); INSERT INTO `district` VALUES ('3265', '扶绥县', '3', '323', '0'); INSERT INTO `district` VALUES ('3266', '江州区', '3', '323', '0'); INSERT INTO `district` VALUES ('3267', '龙州县', '3', '323', '0'); INSERT INTO `district` VALUES ('3268', '琼山区', '3', '324', '0'); INSERT INTO `district` VALUES ('3269', '秀英区', '3', '324', '0'); INSERT INTO `district` VALUES ('3270', '美兰区', '3', '324', '0'); INSERT INTO `district` VALUES ('3271', '龙华区', '3', '324', '0'); INSERT INTO `district` VALUES ('3273', '五指山市', '3', '326', '0'); INSERT INTO `district` VALUES ('3274', '琼海市', '3', '327', '0'); INSERT INTO `district` VALUES ('3275', '儋州市', '3', '328', '0'); INSERT INTO `district` VALUES ('3276', '文昌市', '3', '329', '0'); INSERT INTO `district` VALUES ('3277', '万宁市', '3', '330', '0'); INSERT INTO `district` VALUES ('3278', '东方市', '3', '331', '0'); INSERT INTO `district` VALUES ('3279', '定安县', '3', '332', '0'); INSERT INTO `district` VALUES ('3280', '屯昌县', '3', '333', '0'); INSERT INTO `district` VALUES ('3281', '澄迈县', '3', '334', '0'); INSERT INTO `district` VALUES ('3282', '临高县', '3', '335', '0'); INSERT INTO `district` VALUES ('3283', '白沙黎族自治县', '3', '336', '0'); INSERT INTO `district` VALUES ('3284', '昌江黎族自治县', '3', '337', '0'); INSERT INTO `district` VALUES ('3285', '乐东黎族自治县', '3', '338', '0'); INSERT INTO `district` VALUES ('3286', '陵水黎族自治县', '3', '339', '0'); INSERT INTO `district` VALUES ('3287', '保亭黎族苗族自治县', '3', '340', '0'); INSERT INTO `district` VALUES ('3288', '琼中黎族苗族自治县', '3', '341', '0'); INSERT INTO `district` VALUES ('4209', '双流县', '3', '385', '0'); INSERT INTO `district` VALUES ('4210', '大邑县', '3', '385', '0'); INSERT INTO `district` VALUES ('4211', '崇州市', '3', '385', '0'); INSERT INTO `district` VALUES ('4212', '彭州市', '3', '385', '0'); INSERT INTO `district` VALUES ('4213', '成华区', '3', '385', '0'); INSERT INTO `district` VALUES ('4214', '新津县', '3', '385', '0'); INSERT INTO `district` VALUES ('4215', '新都区', '3', '385', '0'); INSERT INTO `district` VALUES ('4216', '武侯区', '3', '385', '0'); INSERT INTO `district` VALUES ('4217', '温江区', '3', '385', '0'); INSERT INTO `district` VALUES ('4218', '蒲江县', '3', '385', '0'); INSERT INTO `district` VALUES ('4219', '邛崃市', '3', '385', '0'); INSERT INTO `district` VALUES ('4220', '郫县', '3', '385', '0'); INSERT INTO `district` VALUES ('4221', '都江堰市', '3', '385', '0'); INSERT INTO `district` VALUES ('4222', '金堂县', '3', '385', '0'); INSERT INTO `district` VALUES ('4223', '金牛区', '3', '385', '0'); INSERT INTO `district` VALUES ('4224', '锦江区', '3', '385', '0'); INSERT INTO `district` VALUES ('4225', '青白江区', '3', '385', '0'); INSERT INTO `district` VALUES ('4226', '青羊区', '3', '385', '0'); INSERT INTO `district` VALUES ('4227', '龙泉驿区', '3', '385', '0'); INSERT INTO `district` VALUES ('4228', '大安区', '3', '386', '0'); INSERT INTO `district` VALUES ('4229', '富顺县', '3', '386', '0'); INSERT INTO `district` VALUES ('4230', '沿滩区', '3', '386', '0'); INSERT INTO `district` VALUES ('4231', '自流井区', '3', '386', '0'); INSERT INTO `district` VALUES ('4232', '荣县', '3', '386', '0'); INSERT INTO `district` VALUES ('4233', '贡井区', '3', '386', '0'); INSERT INTO `district` VALUES ('4234', '东区', '3', '387', '0'); INSERT INTO `district` VALUES ('4235', '仁和区', '3', '387', '0'); INSERT INTO `district` VALUES ('4236', '盐边县', '3', '387', '0'); INSERT INTO `district` VALUES ('4237', '米易县', '3', '387', '0'); INSERT INTO `district` VALUES ('4238', '西区', '3', '387', '0'); INSERT INTO `district` VALUES ('4239', '叙永县', '3', '388', '0'); INSERT INTO `district` VALUES ('4240', '古蔺县', '3', '388', '0'); INSERT INTO `district` VALUES ('4241', '合江县', '3', '388', '0'); INSERT INTO `district` VALUES ('4242', '江阳区', '3', '388', '0'); INSERT INTO `district` VALUES ('4243', '泸县', '3', '388', '0'); INSERT INTO `district` VALUES ('4244', '纳溪区', '3', '388', '0'); INSERT INTO `district` VALUES ('4245', '龙马潭区', '3', '388', '0'); INSERT INTO `district` VALUES ('4246', '中江县', '3', '389', '0'); INSERT INTO `district` VALUES ('4247', '什邡市', '3', '389', '0'); INSERT INTO `district` VALUES ('4248', '广汉市', '3', '389', '0'); INSERT INTO `district` VALUES ('4249', '旌阳区', '3', '389', '0'); INSERT INTO `district` VALUES ('4250', '绵竹市', '3', '389', '0'); INSERT INTO `district` VALUES ('4251', '罗江县', '3', '389', '0'); INSERT INTO `district` VALUES ('4252', '三台县', '3', '390', '0'); INSERT INTO `district` VALUES ('4253', '北川羌族自治县', '3', '390', '0'); INSERT INTO `district` VALUES ('4254', '安县', '3', '390', '0'); INSERT INTO `district` VALUES ('4255', '平武县', '3', '390', '0'); INSERT INTO `district` VALUES ('4256', '梓潼县', '3', '390', '0'); INSERT INTO `district` VALUES ('4257', '江油市', '3', '390', '0'); INSERT INTO `district` VALUES ('4258', '涪城区', '3', '390', '0'); INSERT INTO `district` VALUES ('4259', '游仙区', '3', '390', '0'); INSERT INTO `district` VALUES ('4260', '盐亭县', '3', '390', '0'); INSERT INTO `district` VALUES ('4261', '元坝区', '3', '391', '0'); INSERT INTO `district` VALUES ('4262', '利州区', '3', '391', '0'); INSERT INTO `district` VALUES ('4263', '剑阁县', '3', '391', '0'); INSERT INTO `district` VALUES ('4264', '旺苍县', '3', '391', '0'); INSERT INTO `district` VALUES ('4265', '朝天区', '3', '391', '0'); INSERT INTO `district` VALUES ('4266', '苍溪县', '3', '391', '0'); INSERT INTO `district` VALUES ('4267', '青川县', '3', '391', '0'); INSERT INTO `district` VALUES ('4268', '大英县', '3', '392', '0'); INSERT INTO `district` VALUES ('4269', '安居区', '3', '392', '0'); INSERT INTO `district` VALUES ('4270', '射洪县', '3', '392', '0'); INSERT INTO `district` VALUES ('4271', '船山区', '3', '392', '0'); INSERT INTO `district` VALUES ('4272', '蓬溪县', '3', '392', '0'); INSERT INTO `district` VALUES ('4273', '东兴区', '3', '393', '0'); INSERT INTO `district` VALUES ('4274', '威远县', '3', '393', '0'); INSERT INTO `district` VALUES ('4275', '市中区', '3', '393', '0'); INSERT INTO `district` VALUES ('4276', '资中县', '3', '393', '0'); INSERT INTO `district` VALUES ('4277', '隆昌县', '3', '393', '0'); INSERT INTO `district` VALUES ('4278', '五通桥区', '3', '394', '0'); INSERT INTO `district` VALUES ('4279', '井研县', '3', '394', '0'); INSERT INTO `district` VALUES ('4280', '夹江县', '3', '394', '0'); INSERT INTO `district` VALUES ('4281', '峨眉山市', '3', '394', '0'); INSERT INTO `district` VALUES ('4282', '峨边彝族自治县', '3', '394', '0'); INSERT INTO `district` VALUES ('4283', '市中区', '3', '394', '0'); INSERT INTO `district` VALUES ('4284', '沐川县', '3', '394', '0'); INSERT INTO `district` VALUES ('4285', '沙湾区', '3', '394', '0'); INSERT INTO `district` VALUES ('4286', '犍为县', '3', '394', '0'); INSERT INTO `district` VALUES ('4287', '金口河区', '3', '394', '0'); INSERT INTO `district` VALUES ('4288', '马边彝族自治县', '3', '394', '0'); INSERT INTO `district` VALUES ('4289', '仪陇县', '3', '395', '0'); INSERT INTO `district` VALUES ('4290', '南充市嘉陵区', '3', '395', '0'); INSERT INTO `district` VALUES ('4291', '南部县', '3', '395', '0'); INSERT INTO `district` VALUES ('4292', '嘉陵区', '3', '395', '0'); INSERT INTO `district` VALUES ('4293', '营山县', '3', '395', '0'); INSERT INTO `district` VALUES ('4294', '蓬安县', '3', '395', '0'); INSERT INTO `district` VALUES ('4295', '西充县', '3', '395', '0'); INSERT INTO `district` VALUES ('4296', '阆中市', '3', '395', '0'); INSERT INTO `district` VALUES ('4297', '顺庆区', '3', '395', '0'); INSERT INTO `district` VALUES ('4298', '高坪区', '3', '395', '0'); INSERT INTO `district` VALUES ('4299', '东坡区', '3', '396', '0'); INSERT INTO `district` VALUES ('4300', '丹棱县', '3', '396', '0'); INSERT INTO `district` VALUES ('4301', '仁寿县', '3', '396', '0'); INSERT INTO `district` VALUES ('4302', '彭山县', '3', '396', '0'); INSERT INTO `district` VALUES ('4303', '洪雅县', '3', '396', '0'); INSERT INTO `district` VALUES ('4304', '青神县', '3', '396', '0'); INSERT INTO `district` VALUES ('4305', '兴文县', '3', '397', '0'); INSERT INTO `district` VALUES ('4306', '南溪县', '3', '397', '0'); INSERT INTO `district` VALUES ('4307', '宜宾县', '3', '397', '0'); INSERT INTO `district` VALUES ('4308', '屏山县', '3', '397', '0'); INSERT INTO `district` VALUES ('4309', '江安县', '3', '397', '0'); INSERT INTO `district` VALUES ('4310', '珙县', '3', '397', '0'); INSERT INTO `district` VALUES ('4311', '筠连县', '3', '397', '0'); INSERT INTO `district` VALUES ('4312', '翠屏区', '3', '397', '0'); INSERT INTO `district` VALUES ('4313', '长宁县', '3', '397', '0'); INSERT INTO `district` VALUES ('4314', '高县', '3', '397', '0'); INSERT INTO `district` VALUES ('4315', '华蓥市', '3', '398', '0'); INSERT INTO `district` VALUES ('4316', '岳池县', '3', '398', '0'); INSERT INTO `district` VALUES ('4317', '广安区', '3', '398', '0'); INSERT INTO `district` VALUES ('4318', '武胜县', '3', '398', '0'); INSERT INTO `district` VALUES ('4319', '邻水县', '3', '398', '0'); INSERT INTO `district` VALUES ('4320', '万源市', '3', '399', '0'); INSERT INTO `district` VALUES ('4321', '大竹县', '3', '399', '0'); INSERT INTO `district` VALUES ('4322', '宣汉县', '3', '399', '0'); INSERT INTO `district` VALUES ('4323', '开江县', '3', '399', '0'); INSERT INTO `district` VALUES ('4324', '渠县', '3', '399', '0'); INSERT INTO `district` VALUES ('4325', '达县', '3', '399', '0'); INSERT INTO `district` VALUES ('4326', '通川区', '3', '399', '0'); INSERT INTO `district` VALUES ('4327', '名山县', '3', '400', '0'); INSERT INTO `district` VALUES ('4328', '天全县', '3', '400', '0'); INSERT INTO `district` VALUES ('4329', '宝兴县', '3', '400', '0'); INSERT INTO `district` VALUES ('4330', '汉源县', '3', '400', '0'); INSERT INTO `district` VALUES ('4331', '石棉县', '3', '400', '0'); INSERT INTO `district` VALUES ('4332', '芦山县', '3', '400', '0'); INSERT INTO `district` VALUES ('4333', '荥经县', '3', '400', '0'); INSERT INTO `district` VALUES ('4334', '雨城区', '3', '400', '0'); INSERT INTO `district` VALUES ('4335', '南江县', '3', '401', '0'); INSERT INTO `district` VALUES ('4336', '巴州区', '3', '401', '0'); INSERT INTO `district` VALUES ('4337', '平昌县', '3', '401', '0'); INSERT INTO `district` VALUES ('4338', '通江县', '3', '401', '0'); INSERT INTO `district` VALUES ('4339', '乐至县', '3', '402', '0'); INSERT INTO `district` VALUES ('4340', '安岳县', '3', '402', '0'); INSERT INTO `district` VALUES ('4341', '简阳市', '3', '402', '0'); INSERT INTO `district` VALUES ('4342', '雁江区', '3', '402', '0'); INSERT INTO `district` VALUES ('4343', '九寨沟县', '3', '403', '0'); INSERT INTO `district` VALUES ('4344', '壤塘县', '3', '403', '0'); INSERT INTO `district` VALUES ('4345', '小金县', '3', '403', '0'); INSERT INTO `district` VALUES ('4346', '松潘县', '3', '403', '0'); INSERT INTO `district` VALUES ('4347', '汶川县', '3', '403', '0'); INSERT INTO `district` VALUES ('4348', '理县', '3', '403', '0'); INSERT INTO `district` VALUES ('4349', '红原县', '3', '403', '0'); INSERT INTO `district` VALUES ('4350', '若尔盖县', '3', '403', '0'); INSERT INTO `district` VALUES ('4351', '茂县', '3', '403', '0'); INSERT INTO `district` VALUES ('4352', '金川县', '3', '403', '0'); INSERT INTO `district` VALUES ('4353', '阿坝县', '3', '403', '0'); INSERT INTO `district` VALUES ('4354', '马尔康县', '3', '403', '0'); INSERT INTO `district` VALUES ('4355', '黑水县', '3', '403', '0'); INSERT INTO `district` VALUES ('4356', '丹巴县', '3', '404', '0'); INSERT INTO `district` VALUES ('4357', '乡城县', '3', '404', '0'); INSERT INTO `district` VALUES ('4358', '巴塘县', '3', '404', '0'); INSERT INTO `district` VALUES ('4359', '康定县', '3', '404', '0'); INSERT INTO `district` VALUES ('4360', '得荣县', '3', '404', '0'); INSERT INTO `district` VALUES ('4361', '德格县', '3', '404', '0'); INSERT INTO `district` VALUES ('4362', '新龙县', '3', '404', '0'); INSERT INTO `district` VALUES ('4363', '泸定县', '3', '404', '0'); INSERT INTO `district` VALUES ('4364', '炉霍县', '3', '404', '0'); INSERT INTO `district` VALUES ('4365', '理塘县', '3', '404', '0'); INSERT INTO `district` VALUES ('4366', '甘孜县', '3', '404', '0'); INSERT INTO `district` VALUES ('4367', '白玉县', '3', '404', '0'); INSERT INTO `district` VALUES ('4368', '石渠县', '3', '404', '0'); INSERT INTO `district` VALUES ('4369', '稻城县', '3', '404', '0'); INSERT INTO `district` VALUES ('4370', '色达县', '3', '404', '0'); INSERT INTO `district` VALUES ('4371', '道孚县', '3', '404', '0'); INSERT INTO `district` VALUES ('4372', '雅江县', '3', '404', '0'); INSERT INTO `district` VALUES ('4373', '会东县', '3', '405', '0'); INSERT INTO `district` VALUES ('4374', '会理县', '3', '405', '0'); INSERT INTO `district` VALUES ('4375', '冕宁县', '3', '405', '0'); INSERT INTO `district` VALUES ('4376', '喜德县', '3', '405', '0'); INSERT INTO `district` VALUES ('4377', '宁南县', '3', '405', '0'); INSERT INTO `district` VALUES ('4378', '布拖县', '3', '405', '0'); INSERT INTO `district` VALUES ('4379', '德昌县', '3', '405', '0'); INSERT INTO `district` VALUES ('4380', '昭觉县', '3', '405', '0'); INSERT INTO `district` VALUES ('4381', '普格县', '3', '405', '0'); INSERT INTO `district` VALUES ('4382', '木里藏族自治县', '3', '405', '0'); INSERT INTO `district` VALUES ('4383', '甘洛县', '3', '405', '0'); INSERT INTO `district` VALUES ('4384', '盐源县', '3', '405', '0'); INSERT INTO `district` VALUES ('4385', '美姑县', '3', '405', '0'); INSERT INTO `district` VALUES ('4386', '西昌', '3', '405', '0'); INSERT INTO `district` VALUES ('4387', '越西县', '3', '405', '0'); INSERT INTO `district` VALUES ('4388', '金阳县', '3', '405', '0'); INSERT INTO `district` VALUES ('4389', '雷波县', '3', '405', '0'); INSERT INTO `district` VALUES ('4390', '乌当区', '3', '406', '0'); INSERT INTO `district` VALUES ('4391', '云岩区', '3', '406', '0'); INSERT INTO `district` VALUES ('4392', '修文县', '3', '406', '0'); INSERT INTO `district` VALUES ('4393', '南明区', '3', '406', '0'); INSERT INTO `district` VALUES ('4394', '小河区', '3', '406', '0'); INSERT INTO `district` VALUES ('4395', '开阳县', '3', '406', '0'); INSERT INTO `district` VALUES ('4396', '息烽县', '3', '406', '0'); INSERT INTO `district` VALUES ('4397', '清镇市', '3', '406', '0'); INSERT INTO `district` VALUES ('4398', '白云区', '3', '406', '0'); INSERT INTO `district` VALUES ('4399', '花溪区', '3', '406', '0'); INSERT INTO `district` VALUES ('4400', '六枝特区', '3', '407', '0'); INSERT INTO `district` VALUES ('4401', '水城县', '3', '407', '0'); INSERT INTO `district` VALUES ('4402', '盘县', '3', '407', '0'); INSERT INTO `district` VALUES ('4403', '钟山区', '3', '407', '0'); INSERT INTO `district` VALUES ('4404', '习水县', '3', '408', '0'); INSERT INTO `district` VALUES ('4405', '仁怀市', '3', '408', '0'); INSERT INTO `district` VALUES ('4406', '余庆县', '3', '408', '0'); INSERT INTO `district` VALUES ('4407', '凤冈县', '3', '408', '0'); INSERT INTO `district` VALUES ('4408', '务川仡佬族苗族自治县', '3', '408', '0'); INSERT INTO `district` VALUES ('4409', '桐梓县', '3', '408', '0'); INSERT INTO `district` VALUES ('4410', '正安县', '3', '408', '0'); INSERT INTO `district` VALUES ('4411', '汇川区', '3', '408', '0'); INSERT INTO `district` VALUES ('4412', '湄潭县', '3', '408', '0'); INSERT INTO `district` VALUES ('4413', '红花岗区', '3', '408', '0'); INSERT INTO `district` VALUES ('4414', '绥阳县', '3', '408', '0'); INSERT INTO `district` VALUES ('4415', '赤水市', '3', '408', '0'); INSERT INTO `district` VALUES ('4416', '道真仡佬族苗族自治县', '3', '408', '0'); INSERT INTO `district` VALUES ('4417', '遵义县', '3', '408', '0'); INSERT INTO `district` VALUES ('4418', '关岭布依族苗族自治县', '3', '409', '0'); INSERT INTO `district` VALUES ('4419', '平坝县', '3', '409', '0'); INSERT INTO `district` VALUES ('4420', '普定县', '3', '409', '0'); INSERT INTO `district` VALUES ('4421', '紫云苗族布依族自治县', '3', '409', '0'); INSERT INTO `district` VALUES ('4422', '西秀区', '3', '409', '0'); INSERT INTO `district` VALUES ('4423', '镇宁布依族苗族自治县', '3', '409', '0'); INSERT INTO `district` VALUES ('4424', '万山特区', '3', '410', '0'); INSERT INTO `district` VALUES ('4425', '印江土家族苗族自治县', '3', '410', '0'); INSERT INTO `district` VALUES ('4426', '德江县', '3', '410', '0'); INSERT INTO `district` VALUES ('4427', '思南县', '3', '410', '0'); INSERT INTO `district` VALUES ('4428', '松桃苗族自治县', '3', '410', '0'); INSERT INTO `district` VALUES ('4429', '江口县', '3', '410', '0'); INSERT INTO `district` VALUES ('4430', '沿河土家族自治县', '3', '410', '0'); INSERT INTO `district` VALUES ('4431', '玉屏侗族自治县', '3', '410', '0'); INSERT INTO `district` VALUES ('4432', '石阡县', '3', '410', '0'); INSERT INTO `district` VALUES ('4433', '铜仁市', '3', '410', '0'); INSERT INTO `district` VALUES ('4434', '兴义市', '3', '411', '0'); INSERT INTO `district` VALUES ('4435', '兴仁县', '3', '411', '0'); INSERT INTO `district` VALUES ('4436', '册亨县', '3', '411', '0'); INSERT INTO `district` VALUES ('4437', '安龙县', '3', '411', '0'); INSERT INTO `district` VALUES ('4438', '普安县', '3', '411', '0'); INSERT INTO `district` VALUES ('4439', '晴隆县', '3', '411', '0'); INSERT INTO `district` VALUES ('4440', '望谟县', '3', '411', '0'); INSERT INTO `district` VALUES ('4441', '贞丰县', '3', '411', '0'); INSERT INTO `district` VALUES ('4442', '大方县', '3', '412', '0'); INSERT INTO `district` VALUES ('4443', '威宁彝族回族苗族自治县', '3', '412', '0'); INSERT INTO `district` VALUES ('4444', '毕节市', '3', '412', '0'); INSERT INTO `district` VALUES ('4445', '纳雍县', '3', '412', '0'); INSERT INTO `district` VALUES ('4446', '织金县', '3', '412', '0'); INSERT INTO `district` VALUES ('4447', '赫章县', '3', '412', '0'); INSERT INTO `district` VALUES ('4448', '金沙县', '3', '412', '0'); INSERT INTO `district` VALUES ('4449', '黔西县', '3', '412', '0'); INSERT INTO `district` VALUES ('4450', '三穗县', '3', '413', '0'); INSERT INTO `district` VALUES ('4451', '丹寨县', '3', '413', '0'); INSERT INTO `district` VALUES ('4452', '从江县', '3', '413', '0'); INSERT INTO `district` VALUES ('4453', '凯里市', '3', '413', '0'); INSERT INTO `district` VALUES ('4454', '剑河县', '3', '413', '0'); INSERT INTO `district` VALUES ('4455', '台江县', '3', '413', '0'); INSERT INTO `district` VALUES ('4456', '天柱县', '3', '413', '0'); INSERT INTO `district` VALUES ('4457', '岑巩县', '3', '413', '0'); INSERT INTO `district` VALUES ('4458', '施秉县', '3', '413', '0'); INSERT INTO `district` VALUES ('4459', '榕江县', '3', '413', '0'); INSERT INTO `district` VALUES ('4460', '锦屏县', '3', '413', '0'); INSERT INTO `district` VALUES ('4461', '镇远县', '3', '413', '0'); INSERT INTO `district` VALUES ('4462', '雷山县', '3', '413', '0'); INSERT INTO `district` VALUES ('4463', '麻江县', '3', '413', '0'); INSERT INTO `district` VALUES ('4464', '黄平县', '3', '413', '0'); INSERT INTO `district` VALUES ('4465', '黎平县', '3', '413', '0'); INSERT INTO `district` VALUES ('4466', '三都水族自治县', '3', '414', '0'); INSERT INTO `district` VALUES ('4467', '平塘县', '3', '414', '0'); INSERT INTO `district` VALUES ('4468', '惠水县', '3', '414', '0'); INSERT INTO `district` VALUES ('4469', '独山县', '3', '414', '0'); INSERT INTO `district` VALUES ('4470', '瓮安县', '3', '414', '0'); INSERT INTO `district` VALUES ('4471', '福泉市', '3', '414', '0'); INSERT INTO `district` VALUES ('4472', '罗甸县', '3', '414', '0'); INSERT INTO `district` VALUES ('4473', '荔波县', '3', '414', '0'); INSERT INTO `district` VALUES ('4474', '贵定县', '3', '414', '0'); INSERT INTO `district` VALUES ('4475', '都匀市', '3', '414', '0'); INSERT INTO `district` VALUES ('4476', '长顺县', '3', '414', '0'); INSERT INTO `district` VALUES ('4477', '龙里县', '3', '414', '0'); INSERT INTO `district` VALUES ('4478', '东川区', '3', '415', '0'); INSERT INTO `district` VALUES ('4479', '五华区', '3', '415', '0'); INSERT INTO `district` VALUES ('4480', '呈贡县', '3', '415', '0'); INSERT INTO `district` VALUES ('4481', '安宁市', '3', '415', '0'); INSERT INTO `district` VALUES ('4482', '官渡区', '3', '415', '0'); INSERT INTO `district` VALUES ('4483', '宜良县', '3', '415', '0'); INSERT INTO `district` VALUES ('4484', '富民县', '3', '415', '0'); INSERT INTO `district` VALUES ('4485', '寻甸回族彝族自治县', '3', '415', '0'); INSERT INTO `district` VALUES ('4486', '嵩明县', '3', '415', '0'); INSERT INTO `district` VALUES ('4487', '晋宁县', '3', '415', '0'); INSERT INTO `district` VALUES ('4488', '盘龙区', '3', '415', '0'); INSERT INTO `district` VALUES ('4489', '石林彝族自治县', '3', '415', '0'); INSERT INTO `district` VALUES ('4490', '禄劝彝族苗族自治县', '3', '415', '0'); INSERT INTO `district` VALUES ('4491', '西山区', '3', '415', '0'); INSERT INTO `district` VALUES ('4492', '会泽县', '3', '416', '0'); INSERT INTO `district` VALUES ('4493', '宣威市', '3', '416', '0'); INSERT INTO `district` VALUES ('4494', '富源县', '3', '416', '0'); INSERT INTO `district` VALUES ('4495', '师宗县', '3', '416', '0'); INSERT INTO `district` VALUES ('4496', '沾益县', '3', '416', '0'); INSERT INTO `district` VALUES ('4497', '罗平县', '3', '416', '0'); INSERT INTO `district` VALUES ('4498', '陆良县', '3', '416', '0'); INSERT INTO `district` VALUES ('4499', '马龙县', '3', '416', '0'); INSERT INTO `district` VALUES ('4500', '麒麟区', '3', '416', '0'); INSERT INTO `district` VALUES ('4501', '元江哈尼族彝族傣族自治县', '3', '417', '0'); INSERT INTO `district` VALUES ('4502', '华宁县', '3', '417', '0'); INSERT INTO `district` VALUES ('4503', '峨山彝族自治县', '3', '417', '0'); INSERT INTO `district` VALUES ('4504', '新平彝族傣族自治县', '3', '417', '0'); INSERT INTO `district` VALUES ('4505', '易门县', '3', '417', '0'); INSERT INTO `district` VALUES ('4506', '江川县', '3', '417', '0'); INSERT INTO `district` VALUES ('4507', '澄江县', '3', '417', '0'); INSERT INTO `district` VALUES ('4508', '红塔区', '3', '417', '0'); INSERT INTO `district` VALUES ('4509', '通海县', '3', '417', '0'); INSERT INTO `district` VALUES ('4510', '施甸县', '3', '418', '0'); INSERT INTO `district` VALUES ('4511', '昌宁县', '3', '418', '0'); INSERT INTO `district` VALUES ('4512', '腾冲县', '3', '418', '0'); INSERT INTO `district` VALUES ('4513', '隆阳区', '3', '418', '0'); INSERT INTO `district` VALUES ('4514', '龙陵县', '3', '418', '0'); INSERT INTO `district` VALUES ('4515', '大关县', '3', '419', '0'); INSERT INTO `district` VALUES ('4516', '威信县', '3', '419', '0'); INSERT INTO `district` VALUES ('4517', '巧家县', '3', '419', '0'); INSERT INTO `district` VALUES ('4518', '彝良县', '3', '419', '0'); INSERT INTO `district` VALUES ('4519', '昭阳区', '3', '419', '0'); INSERT INTO `district` VALUES ('4520', '水富县', '3', '419', '0'); INSERT INTO `district` VALUES ('4521', '永善县', '3', '419', '0'); INSERT INTO `district` VALUES ('4522', '盐津县', '3', '419', '0'); INSERT INTO `district` VALUES ('4523', '绥江县', '3', '419', '0'); INSERT INTO `district` VALUES ('4524', '镇雄县', '3', '419', '0'); INSERT INTO `district` VALUES ('4525', '鲁甸县', '3', '419', '0'); INSERT INTO `district` VALUES ('4526', '华坪县', '3', '420', '0'); INSERT INTO `district` VALUES ('4527', '古城区', '3', '420', '0'); INSERT INTO `district` VALUES ('4528', '宁蒗彝族自治县', '3', '420', '0'); INSERT INTO `district` VALUES ('4529', '永胜县', '3', '420', '0'); INSERT INTO `district` VALUES ('4530', '玉龙纳西族自治县', '3', '420', '0'); INSERT INTO `district` VALUES ('4531', '临翔区', '3', '422', '0'); INSERT INTO `district` VALUES ('4532', '云县', '3', '422', '0'); INSERT INTO `district` VALUES ('4533', '凤庆县', '3', '422', '0'); INSERT INTO `district` VALUES ('4534', '双江拉祜族佤族布朗族傣族自治县', '3', '422', '0'); INSERT INTO `district` VALUES ('4535', '永德县', '3', '422', '0'); INSERT INTO `district` VALUES ('4536', '沧源佤族自治县', '3', '422', '0'); INSERT INTO `district` VALUES ('4537', '耿马傣族佤族自治县', '3', '422', '0'); INSERT INTO `district` VALUES ('4538', '镇康县', '3', '422', '0'); INSERT INTO `district` VALUES ('4539', '元谋县', '3', '423', '0'); INSERT INTO `district` VALUES ('4540', '南华县', '3', '423', '0'); INSERT INTO `district` VALUES ('4541', '双柏县', '3', '423', '0'); INSERT INTO `district` VALUES ('4542', '大姚县', '3', '423', '0'); INSERT INTO `district` VALUES ('4543', '姚安县', '3', '423', '0'); INSERT INTO `district` VALUES ('4544', '楚雄市', '3', '423', '0'); INSERT INTO `district` VALUES ('4545', '武定县', '3', '423', '0'); INSERT INTO `district` VALUES ('4546', '永仁县', '3', '423', '0'); INSERT INTO `district` VALUES ('4547', '牟定县', '3', '423', '0'); INSERT INTO `district` VALUES ('4548', '禄丰县', '3', '423', '0'); INSERT INTO `district` VALUES ('4549', '个旧市', '3', '424', '0'); INSERT INTO `district` VALUES ('4550', '元阳县', '3', '424', '0'); INSERT INTO `district` VALUES ('4551', '屏边苗族自治县', '3', '424', '0'); INSERT INTO `district` VALUES ('4552', '建水县', '3', '424', '0'); INSERT INTO `district` VALUES ('4553', '开远市', '3', '424', '0'); INSERT INTO `district` VALUES ('4554', '弥勒县', '3', '424', '0'); INSERT INTO `district` VALUES ('4555', '河口瑶族自治县', '3', '424', '0'); INSERT INTO `district` VALUES ('4556', '泸西县', '3', '424', '0'); INSERT INTO `district` VALUES ('4557', '石屏县', '3', '424', '0'); INSERT INTO `district` VALUES ('4558', '红河县', '3', '424', '0'); INSERT INTO `district` VALUES ('4559', '绿春县', '3', '424', '0'); INSERT INTO `district` VALUES ('4560', '蒙自县', '3', '424', '0'); INSERT INTO `district` VALUES ('4561', '金平苗族瑶族傣族自治县', '3', '424', '0'); INSERT INTO `district` VALUES ('4562', '丘北县', '3', '425', '0'); INSERT INTO `district` VALUES ('4563', '富宁县', '3', '425', '0'); INSERT INTO `district` VALUES ('4564', '广南县', '3', '425', '0'); INSERT INTO `district` VALUES ('4565', '文山县', '3', '425', '0'); INSERT INTO `district` VALUES ('4566', '砚山县', '3', '425', '0'); INSERT INTO `district` VALUES ('4567', '西畴县', '3', '425', '0'); INSERT INTO `district` VALUES ('4568', '马关县', '3', '425', '0'); INSERT INTO `district` VALUES ('4569', '麻栗坡县', '3', '425', '0'); INSERT INTO `district` VALUES ('4570', '勐海县', '3', '426', '0'); INSERT INTO `district` VALUES ('4571', '勐腊县', '3', '426', '0'); INSERT INTO `district` VALUES ('4572', '景洪市', '3', '426', '0'); INSERT INTO `district` VALUES ('4573', '云龙县', '3', '427', '0'); INSERT INTO `district` VALUES ('4574', '剑川县', '3', '427', '0'); INSERT INTO `district` VALUES ('4575', '南涧彝族自治县', '3', '427', '0'); INSERT INTO `district` VALUES ('4576', '大理市', '3', '427', '0'); INSERT INTO `district` VALUES ('4577', '宾川县', '3', '427', '0'); INSERT INTO `district` VALUES ('4578', '巍山彝族回族自治县', '3', '427', '0'); INSERT INTO `district` VALUES ('4579', '弥渡县', '3', '427', '0'); INSERT INTO `district` VALUES ('4580', '永平县', '3', '427', '0'); INSERT INTO `district` VALUES ('4581', '洱源县', '3', '427', '0'); INSERT INTO `district` VALUES ('4582', '漾濞彝族自治县', '3', '427', '0'); INSERT INTO `district` VALUES ('4583', '祥云县', '3', '427', '0'); INSERT INTO `district` VALUES ('4584', '鹤庆县', '3', '427', '0'); INSERT INTO `district` VALUES ('4585', '梁河县', '3', '428', '0'); INSERT INTO `district` VALUES ('4586', '潞西市', '3', '428', '0'); INSERT INTO `district` VALUES ('4587', '瑞丽市', '3', '428', '0'); INSERT INTO `district` VALUES ('4588', '盈江县', '3', '428', '0'); INSERT INTO `district` VALUES ('4589', '陇川县', '3', '428', '0'); INSERT INTO `district` VALUES ('4590', '德钦县', '3', '430', '0'); INSERT INTO `district` VALUES ('4591', '维西傈僳族自治县', '3', '430', '0'); INSERT INTO `district` VALUES ('4592', '香格里拉县', '3', '430', '0'); INSERT INTO `district` VALUES ('4593', '城关区', '3', '431', '0'); INSERT INTO `district` VALUES ('4594', '堆龙德庆县', '3', '431', '0'); INSERT INTO `district` VALUES ('4595', '墨竹工卡县', '3', '431', '0'); INSERT INTO `district` VALUES ('4596', '尼木县', '3', '431', '0'); INSERT INTO `district` VALUES ('4597', '当雄县', '3', '431', '0'); INSERT INTO `district` VALUES ('4598', '曲水县', '3', '431', '0'); INSERT INTO `district` VALUES ('4599', '林周县', '3', '431', '0'); INSERT INTO `district` VALUES ('4600', '达孜县', '3', '431', '0'); INSERT INTO `district` VALUES ('4601', '丁青县', '3', '432', '0'); INSERT INTO `district` VALUES ('4602', '八宿县', '3', '432', '0'); INSERT INTO `district` VALUES ('4603', '察雅县', '3', '432', '0'); INSERT INTO `district` VALUES ('4604', '左贡县', '3', '432', '0'); INSERT INTO `district` VALUES ('4605', '昌都县', '3', '432', '0'); INSERT INTO `district` VALUES ('4606', '江达县', '3', '432', '0'); INSERT INTO `district` VALUES ('4607', '洛隆县', '3', '432', '0'); INSERT INTO `district` VALUES ('4608', '类乌齐县', '3', '432', '0'); INSERT INTO `district` VALUES ('4609', '芒康县', '3', '432', '0'); INSERT INTO `district` VALUES ('4610', '贡觉县', '3', '432', '0'); INSERT INTO `district` VALUES ('4611', '边坝县', '3', '432', '0'); INSERT INTO `district` VALUES ('4612', '乃东县', '3', '433', '0'); INSERT INTO `district` VALUES ('4613', '加查县', '3', '433', '0'); INSERT INTO `district` VALUES ('4614', '扎囊县', '3', '433', '0'); INSERT INTO `district` VALUES ('4615', '措美县', '3', '433', '0'); INSERT INTO `district` VALUES ('4616', '曲松县', '3', '433', '0'); INSERT INTO `district` VALUES ('4617', '桑日县', '3', '433', '0'); INSERT INTO `district` VALUES ('4618', '洛扎县', '3', '433', '0'); INSERT INTO `district` VALUES ('4619', '浪卡子县', '3', '433', '0'); INSERT INTO `district` VALUES ('4620', '琼结县', '3', '433', '0'); INSERT INTO `district` VALUES ('4621', '贡嘎县', '3', '433', '0'); INSERT INTO `district` VALUES ('4622', '错那县', '3', '433', '0'); INSERT INTO `district` VALUES ('4623', '隆子县', '3', '433', '0'); INSERT INTO `district` VALUES ('4624', '亚东县', '3', '434', '0'); INSERT INTO `district` VALUES ('4625', '仁布县', '3', '434', '0'); INSERT INTO `district` VALUES ('4626', '仲巴县', '3', '434', '0'); INSERT INTO `district` VALUES ('4627', '南木林县', '3', '434', '0'); INSERT INTO `district` VALUES ('4628', '吉隆县', '3', '434', '0'); INSERT INTO `district` VALUES ('4629', '定日县', '3', '434', '0'); INSERT INTO `district` VALUES ('4630', '定结县', '3', '434', '0'); INSERT INTO `district` VALUES ('4631', '岗巴县', '3', '434', '0'); INSERT INTO `district` VALUES ('4632', '康马县', '3', '434', '0'); INSERT INTO `district` VALUES ('4633', '拉孜县', '3', '434', '0'); INSERT INTO `district` VALUES ('4634', '日喀则市', '3', '434', '0'); INSERT INTO `district` VALUES ('4635', '昂仁县', '3', '434', '0'); INSERT INTO `district` VALUES ('4636', '江孜县', '3', '434', '0'); INSERT INTO `district` VALUES ('4637', '白朗县', '3', '434', '0'); INSERT INTO `district` VALUES ('4638', '聂拉木县', '3', '434', '0'); INSERT INTO `district` VALUES ('4639', '萨嘎县', '3', '434', '0'); INSERT INTO `district` VALUES ('4640', '萨迦县', '3', '434', '0'); INSERT INTO `district` VALUES ('4641', '谢通门县', '3', '434', '0'); INSERT INTO `district` VALUES ('4642', '嘉黎县', '3', '435', '0'); INSERT INTO `district` VALUES ('4643', '安多县', '3', '435', '0'); INSERT INTO `district` VALUES ('4644', '尼玛县', '3', '435', '0'); INSERT INTO `district` VALUES ('4645', '巴青县', '3', '435', '0'); INSERT INTO `district` VALUES ('4646', '比如县', '3', '435', '0'); INSERT INTO `district` VALUES ('4647', '班戈县', '3', '435', '0'); INSERT INTO `district` VALUES ('4648', '申扎县', '3', '435', '0'); INSERT INTO `district` VALUES ('4649', '索县', '3', '435', '0'); INSERT INTO `district` VALUES ('4650', '聂荣县', '3', '435', '0'); INSERT INTO `district` VALUES ('4651', '那曲县', '3', '435', '0'); INSERT INTO `district` VALUES ('4652', '噶尔县', '3', '436', '0'); INSERT INTO `district` VALUES ('4653', '措勤县', '3', '436', '0'); INSERT INTO `district` VALUES ('4654', '改则县', '3', '436', '0'); INSERT INTO `district` VALUES ('4655', '日土县', '3', '436', '0'); INSERT INTO `district` VALUES ('4656', '普兰县', '3', '436', '0'); INSERT INTO `district` VALUES ('4657', '札达县', '3', '436', '0'); INSERT INTO `district` VALUES ('4658', '革吉县', '3', '436', '0'); INSERT INTO `district` VALUES ('4659', '墨脱县', '3', '437', '0'); INSERT INTO `district` VALUES ('4660', '察隅县', '3', '437', '0'); INSERT INTO `district` VALUES ('4661', '工布江达县', '3', '437', '0'); INSERT INTO `district` VALUES ('4662', '朗县', '3', '437', '0'); INSERT INTO `district` VALUES ('4663', '林芝县', '3', '437', '0'); INSERT INTO `district` VALUES ('4664', '波密县', '3', '437', '0'); INSERT INTO `district` VALUES ('4665', '米林县', '3', '437', '0'); INSERT INTO `district` VALUES ('4666', '临潼区', '3', '438', '0'); INSERT INTO `district` VALUES ('4667', '周至县', '3', '438', '0'); INSERT INTO `district` VALUES ('4668', '户县', '3', '438', '0'); INSERT INTO `district` VALUES ('4669', '新城区', '3', '438', '0'); INSERT INTO `district` VALUES ('4670', '未央区', '3', '438', '0'); INSERT INTO `district` VALUES ('4671', '灞桥区', '3', '438', '0'); INSERT INTO `district` VALUES ('4672', '碑林区', '3', '438', '0'); INSERT INTO `district` VALUES ('4673', '莲湖区', '3', '438', '0'); INSERT INTO `district` VALUES ('4674', '蓝田县', '3', '438', '0'); INSERT INTO `district` VALUES ('4675', '长安区', '3', '438', '0'); INSERT INTO `district` VALUES ('4676', '阎良区', '3', '438', '0'); INSERT INTO `district` VALUES ('4677', '雁塔区', '3', '438', '0'); INSERT INTO `district` VALUES ('4678', '高陵县', '3', '438', '0'); INSERT INTO `district` VALUES ('4679', '印台区', '3', '439', '0'); INSERT INTO `district` VALUES ('4680', '宜君县', '3', '439', '0'); INSERT INTO `district` VALUES ('4681', '王益区', '3', '439', '0'); INSERT INTO `district` VALUES ('4682', '耀州区', '3', '439', '0'); INSERT INTO `district` VALUES ('4683', '凤县', '3', '440', '0'); INSERT INTO `district` VALUES ('4684', '凤翔县', '3', '440', '0'); INSERT INTO `district` VALUES ('4685', '千阳县', '3', '440', '0'); INSERT INTO `district` VALUES ('4686', '太白县', '3', '440', '0'); INSERT INTO `district` VALUES ('4687', '岐山县', '3', '440', '0'); INSERT INTO `district` VALUES ('4688', '扶风县', '3', '440', '0'); INSERT INTO `district` VALUES ('4689', '渭滨区', '3', '440', '0'); INSERT INTO `district` VALUES ('4690', '眉县', '3', '440', '0'); INSERT INTO `district` VALUES ('4691', '金台区', '3', '440', '0'); INSERT INTO `district` VALUES ('4692', '陇县', '3', '440', '0'); INSERT INTO `district` VALUES ('4693', '陈仓区', '3', '440', '0'); INSERT INTO `district` VALUES ('4694', '麟游县', '3', '440', '0'); INSERT INTO `district` VALUES ('4695', '三原县', '3', '441', '0'); INSERT INTO `district` VALUES ('4696', '干县', '3', '441', '0'); INSERT INTO `district` VALUES ('4697', '兴平市', '3', '441', '0'); INSERT INTO `district` VALUES ('4698', '彬县', '3', '441', '0'); INSERT INTO `district` VALUES ('4699', '旬邑县', '3', '441', '0'); INSERT INTO `district` VALUES ('4700', '杨陵区', '3', '441', '0'); INSERT INTO `district` VALUES ('4701', '武功县', '3', '441', '0'); INSERT INTO `district` VALUES ('4702', '永寿县', '3', '441', '0'); INSERT INTO `district` VALUES ('4703', '泾阳县', '3', '441', '0'); INSERT INTO `district` VALUES ('4704', '淳化县', '3', '441', '0'); INSERT INTO `district` VALUES ('4705', '渭城区', '3', '441', '0'); INSERT INTO `district` VALUES ('4706', '礼泉县', '3', '441', '0'); INSERT INTO `district` VALUES ('4707', '秦都区', '3', '441', '0'); INSERT INTO `district` VALUES ('4708', '长武县', '3', '441', '0'); INSERT INTO `district` VALUES ('4709', '临渭区', '3', '442', '0'); INSERT INTO `district` VALUES ('4710', '华县', '3', '442', '0'); INSERT INTO `district` VALUES ('4711', '华阴市', '3', '442', '0'); INSERT INTO `district` VALUES ('4712', '合阳县', '3', '442', '0'); INSERT INTO `district` VALUES ('4713', '大荔县', '3', '442', '0'); INSERT INTO `district` VALUES ('4714', '富平县', '3', '442', '0'); INSERT INTO `district` VALUES ('4715', '潼关县', '3', '442', '0'); INSERT INTO `district` VALUES ('4716', '澄城县', '3', '442', '0'); INSERT INTO `district` VALUES ('4717', '白水县', '3', '442', '0'); INSERT INTO `district` VALUES ('4718', '蒲城县', '3', '442', '0'); INSERT INTO `district` VALUES ('4719', '韩城市', '3', '442', '0'); INSERT INTO `district` VALUES ('4720', '吴起县', '3', '443', '0'); INSERT INTO `district` VALUES ('4721', '子长县', '3', '443', '0'); INSERT INTO `district` VALUES ('4722', '安塞县', '3', '443', '0'); INSERT INTO `district` VALUES ('4723', '宜川县', '3', '443', '0'); INSERT INTO `district` VALUES ('4724', '宝塔区', '3', '443', '0'); INSERT INTO `district` VALUES ('4725', '富县', '3', '443', '0'); INSERT INTO `district` VALUES ('4726', '延川县', '3', '443', '0'); INSERT INTO `district` VALUES ('4727', '延长县', '3', '443', '0'); INSERT INTO `district` VALUES ('4728', '志丹县', '3', '443', '0'); INSERT INTO `district` VALUES ('4729', '洛川县', '3', '443', '0'); INSERT INTO `district` VALUES ('4730', '甘泉县', '3', '443', '0'); INSERT INTO `district` VALUES ('4731', '黄陵县', '3', '443', '0'); INSERT INTO `district` VALUES ('4732', '黄龙县', '3', '443', '0'); INSERT INTO `district` VALUES ('4733', '佛坪县', '3', '444', '0'); INSERT INTO `district` VALUES ('4734', '勉县', '3', '444', '0'); INSERT INTO `district` VALUES ('4735', '南郑县', '3', '444', '0'); INSERT INTO `district` VALUES ('4736', '城固县', '3', '444', '0'); INSERT INTO `district` VALUES ('4737', '宁强县', '3', '444', '0'); INSERT INTO `district` VALUES ('4738', '汉台区', '3', '444', '0'); INSERT INTO `district` VALUES ('4739', '洋县', '3', '444', '0'); INSERT INTO `district` VALUES ('4740', '留坝县', '3', '444', '0'); INSERT INTO `district` VALUES ('4741', '略阳县', '3', '444', '0'); INSERT INTO `district` VALUES ('4742', '西乡县', '3', '444', '0'); INSERT INTO `district` VALUES ('4743', '镇巴县', '3', '444', '0'); INSERT INTO `district` VALUES ('4744', '佳县', '3', '445', '0'); INSERT INTO `district` VALUES ('4745', '吴堡县', '3', '445', '0'); INSERT INTO `district` VALUES ('4746', '子洲县', '3', '445', '0'); INSERT INTO `district` VALUES ('4747', '定边县', '3', '445', '0'); INSERT INTO `district` VALUES ('4748', '府谷县', '3', '445', '0'); INSERT INTO `district` VALUES ('4749', '榆林市榆阳区', '3', '445', '0'); INSERT INTO `district` VALUES ('4750', '横山县', '3', '445', '0'); INSERT INTO `district` VALUES ('4751', '清涧县', '3', '445', '0'); INSERT INTO `district` VALUES ('4752', '神木县', '3', '445', '0'); INSERT INTO `district` VALUES ('4753', '米脂县', '3', '445', '0'); INSERT INTO `district` VALUES ('4754', '绥德县', '3', '445', '0'); INSERT INTO `district` VALUES ('4755', '靖边县', '3', '445', '0'); INSERT INTO `district` VALUES ('4756', '宁陕县', '3', '446', '0'); INSERT INTO `district` VALUES ('4757', '岚皋县', '3', '446', '0'); INSERT INTO `district` VALUES ('4758', '平利县', '3', '446', '0'); INSERT INTO `district` VALUES ('4759', '旬阳县', '3', '446', '0'); INSERT INTO `district` VALUES ('4760', '汉滨区', '3', '446', '0'); INSERT INTO `district` VALUES ('4761', '汉阴县', '3', '446', '0'); INSERT INTO `district` VALUES ('4762', '白河县', '3', '446', '0'); INSERT INTO `district` VALUES ('4763', '石泉县', '3', '446', '0'); INSERT INTO `district` VALUES ('4764', '紫阳县', '3', '446', '0'); INSERT INTO `district` VALUES ('4765', '镇坪县', '3', '446', '0'); INSERT INTO `district` VALUES ('4766', '丹凤县', '3', '447', '0'); INSERT INTO `district` VALUES ('4767', '商南县', '3', '447', '0'); INSERT INTO `district` VALUES ('4768', '商州区', '3', '447', '0'); INSERT INTO `district` VALUES ('4769', '山阳县', '3', '447', '0'); INSERT INTO `district` VALUES ('4770', '柞水县', '3', '447', '0'); INSERT INTO `district` VALUES ('4771', '洛南县', '3', '447', '0'); INSERT INTO `district` VALUES ('4772', '镇安县', '3', '447', '0'); INSERT INTO `district` VALUES ('4773', '七里河区', '3', '448', '0'); INSERT INTO `district` VALUES ('4774', '城关区', '3', '448', '0'); INSERT INTO `district` VALUES ('4775', '安宁区', '3', '448', '0'); INSERT INTO `district` VALUES ('4776', '榆中县', '3', '448', '0'); INSERT INTO `district` VALUES ('4777', '永登县', '3', '448', '0'); INSERT INTO `district` VALUES ('4778', '皋兰县', '3', '448', '0'); INSERT INTO `district` VALUES ('4779', '红古区', '3', '448', '0'); INSERT INTO `district` VALUES ('4780', '西固区', '3', '448', '0'); INSERT INTO `district` VALUES ('4781', '嘉峪关市', '3', '449', '0'); INSERT INTO `district` VALUES ('4782', '永昌县', '3', '450', '0'); INSERT INTO `district` VALUES ('4783', '金川区', '3', '450', '0'); INSERT INTO `district` VALUES ('4784', '会宁县', '3', '451', '0'); INSERT INTO `district` VALUES ('4785', '平川区', '3', '451', '0'); INSERT INTO `district` VALUES ('4786', '景泰县', '3', '451', '0'); INSERT INTO `district` VALUES ('4787', '白银区', '3', '451', '0'); INSERT INTO `district` VALUES ('4788', '靖远县', '3', '451', '0'); INSERT INTO `district` VALUES ('4789', '张家川回族自治县', '3', '452', '0'); INSERT INTO `district` VALUES ('4790', '武山县', '3', '452', '0'); INSERT INTO `district` VALUES ('4791', '清水县', '3', '452', '0'); INSERT INTO `district` VALUES ('4792', '甘谷县', '3', '452', '0'); INSERT INTO `district` VALUES ('4793', '秦安县', '3', '452', '0'); INSERT INTO `district` VALUES ('4794', '秦州区', '3', '452', '0'); INSERT INTO `district` VALUES ('4795', '麦积区', '3', '452', '0'); INSERT INTO `district` VALUES ('4796', '凉州区', '3', '453', '0'); INSERT INTO `district` VALUES ('4797', '古浪县', '3', '453', '0'); INSERT INTO `district` VALUES ('4798', '天祝藏族自治县', '3', '453', '0'); INSERT INTO `district` VALUES ('4799', '民勤县', '3', '453', '0'); INSERT INTO `district` VALUES ('4800', '临泽县', '3', '454', '0'); INSERT INTO `district` VALUES ('4801', '山丹县', '3', '454', '0'); INSERT INTO `district` VALUES ('4802', '民乐县', '3', '454', '0'); INSERT INTO `district` VALUES ('4803', '甘州区', '3', '454', '0'); INSERT INTO `district` VALUES ('4804', '肃南裕固族自治县', '3', '454', '0'); INSERT INTO `district` VALUES ('4805', '高台县', '3', '454', '0'); INSERT INTO `district` VALUES ('4806', '华亭县', '3', '455', '0'); INSERT INTO `district` VALUES ('4807', '崆峒区', '3', '455', '0'); INSERT INTO `district` VALUES ('4808', '崇信县', '3', '455', '0'); INSERT INTO `district` VALUES ('4809', '庄浪县', '3', '455', '0'); INSERT INTO `district` VALUES ('4810', '泾川县', '3', '455', '0'); INSERT INTO `district` VALUES ('4811', '灵台县', '3', '455', '0'); INSERT INTO `district` VALUES ('4812', '静宁县', '3', '455', '0'); INSERT INTO `district` VALUES ('4813', '敦煌市', '3', '456', '0'); INSERT INTO `district` VALUES ('4814', '玉门市', '3', '456', '0'); INSERT INTO `district` VALUES ('4815', '瓜州县(原安西县)', '3', '456', '0'); INSERT INTO `district` VALUES ('4816', '肃北蒙古族自治县', '3', '456', '0'); INSERT INTO `district` VALUES ('4817', '肃州区', '3', '456', '0'); INSERT INTO `district` VALUES ('4818', '金塔县', '3', '456', '0'); INSERT INTO `district` VALUES ('4819', '阿克塞哈萨克族自治县', '3', '456', '0'); INSERT INTO `district` VALUES ('4820', '华池县', '3', '457', '0'); INSERT INTO `district` VALUES ('4821', '合水县', '3', '457', '0'); INSERT INTO `district` VALUES ('4822', '宁县', '3', '457', '0'); INSERT INTO `district` VALUES ('4823', '庆城县', '3', '457', '0'); INSERT INTO `district` VALUES ('4824', '正宁县', '3', '457', '0'); INSERT INTO `district` VALUES ('4825', '环县', '3', '457', '0'); INSERT INTO `district` VALUES ('4826', '西峰区', '3', '457', '0'); INSERT INTO `district` VALUES ('4827', '镇原县', '3', '457', '0'); INSERT INTO `district` VALUES ('4828', '临洮县', '3', '458', '0'); INSERT INTO `district` VALUES ('4829', '安定区', '3', '458', '0'); INSERT INTO `district` VALUES ('4830', '岷县', '3', '458', '0'); INSERT INTO `district` VALUES ('4831', '渭源县', '3', '458', '0'); INSERT INTO `district` VALUES ('4832', '漳县', '3', '458', '0'); INSERT INTO `district` VALUES ('4833', '通渭县', '3', '458', '0'); INSERT INTO `district` VALUES ('4834', '陇西县', '3', '458', '0'); INSERT INTO `district` VALUES ('4835', '两当县', '3', '459', '0'); INSERT INTO `district` VALUES ('4836', '宕昌县', '3', '459', '0'); INSERT INTO `district` VALUES ('4837', '康县', '3', '459', '0'); INSERT INTO `district` VALUES ('4838', '徽县', '3', '459', '0'); INSERT INTO `district` VALUES ('4839', '成县', '3', '459', '0'); INSERT INTO `district` VALUES ('4840', '文县', '3', '459', '0'); INSERT INTO `district` VALUES ('4841', '武都区', '3', '459', '0'); INSERT INTO `district` VALUES ('4842', '礼县', '3', '459', '0'); INSERT INTO `district` VALUES ('4843', '西和县', '3', '459', '0'); INSERT INTO `district` VALUES ('4844', '东乡族自治县', '3', '460', '0'); INSERT INTO `district` VALUES ('4845', '临夏县', '3', '460', '0'); INSERT INTO `district` VALUES ('4846', '临夏市', '3', '460', '0'); INSERT INTO `district` VALUES ('4847', '和政县', '3', '460', '0'); INSERT INTO `district` VALUES ('4848', '广河县', '3', '460', '0'); INSERT INTO `district` VALUES ('4849', '康乐县', '3', '460', '0'); INSERT INTO `district` VALUES ('4850', '永靖县', '3', '460', '0'); INSERT INTO `district` VALUES ('4851', '积石山保安族东乡族撒拉族自治县', '3', '460', '0'); INSERT INTO `district` VALUES ('4852', '临潭县', '3', '461', '0'); INSERT INTO `district` VALUES ('4853', '卓尼县', '3', '461', '0'); INSERT INTO `district` VALUES ('4854', '合作市', '3', '461', '0'); INSERT INTO `district` VALUES ('4855', '夏河县', '3', '461', '0'); INSERT INTO `district` VALUES ('4856', '玛曲县', '3', '461', '0'); INSERT INTO `district` VALUES ('4857', '碌曲县', '3', '461', '0'); INSERT INTO `district` VALUES ('4858', '舟曲县', '3', '461', '0'); INSERT INTO `district` VALUES ('4859', '迭部县', '3', '461', '0'); INSERT INTO `district` VALUES ('4860', '城东区', '3', '462', '0'); INSERT INTO `district` VALUES ('4861', '城中区', '3', '462', '0'); INSERT INTO `district` VALUES ('4862', '城北区', '3', '462', '0'); INSERT INTO `district` VALUES ('4863', '城西区', '3', '462', '0'); INSERT INTO `district` VALUES ('4864', '大通回族土族自治县', '3', '462', '0'); INSERT INTO `district` VALUES ('4865', '湟中县', '3', '462', '0'); INSERT INTO `district` VALUES ('4866', '湟源县', '3', '462', '0'); INSERT INTO `district` VALUES ('4867', '乐都县', '3', '463', '0'); INSERT INTO `district` VALUES ('4868', '互助土族自治县', '3', '463', '0'); INSERT INTO `district` VALUES ('4869', '化隆回族自治县', '3', '463', '0'); INSERT INTO `district` VALUES ('4870', '平安县', '3', '463', '0'); INSERT INTO `district` VALUES ('4871', '循化撒拉族自治县', '3', '463', '0'); INSERT INTO `district` VALUES ('4872', '民和回族土族自治县', '3', '463', '0'); INSERT INTO `district` VALUES ('4873', '刚察县', '3', '464', '0'); INSERT INTO `district` VALUES ('4874', '海晏县', '3', '464', '0'); INSERT INTO `district` VALUES ('4875', '祁连县', '3', '464', '0'); INSERT INTO `district` VALUES ('4876', '门源回族自治县', '3', '464', '0'); INSERT INTO `district` VALUES ('4877', '同仁县', '3', '465', '0'); INSERT INTO `district` VALUES ('4878', '尖扎县', '3', '465', '0'); INSERT INTO `district` VALUES ('4879', '河南蒙古族自治县', '3', '465', '0'); INSERT INTO `district` VALUES ('4880', '泽库县', '3', '465', '0'); INSERT INTO `district` VALUES ('4881', '共和县', '3', '466', '0'); INSERT INTO `district` VALUES ('4882', '兴海县', '3', '466', '0'); INSERT INTO `district` VALUES ('4883', '同德县', '3', '466', '0'); INSERT INTO `district` VALUES ('4884', '贵南县', '3', '466', '0'); INSERT INTO `district` VALUES ('4885', '贵德县', '3', '466', '0'); INSERT INTO `district` VALUES ('4886', '久治县', '3', '467', '0'); INSERT INTO `district` VALUES ('4887', '玛多县', '3', '467', '0'); INSERT INTO `district` VALUES ('4888', '玛沁县', '3', '467', '0'); INSERT INTO `district` VALUES ('4889', '班玛县', '3', '467', '0'); INSERT INTO `district` VALUES ('4890', '甘德县', '3', '467', '0'); INSERT INTO `district` VALUES ('4891', '达日县', '3', '467', '0'); INSERT INTO `district` VALUES ('4892', '囊谦县', '3', '468', '0'); INSERT INTO `district` VALUES ('4893', '曲麻莱县', '3', '468', '0'); INSERT INTO `district` VALUES ('4894', '杂多县', '3', '468', '0'); INSERT INTO `district` VALUES ('4895', '治多县', '3', '468', '0'); INSERT INTO `district` VALUES ('4896', '玉树县', '3', '468', '0'); INSERT INTO `district` VALUES ('4897', '称多县', '3', '468', '0'); INSERT INTO `district` VALUES ('4898', '乌兰县', '3', '469', '0'); INSERT INTO `district` VALUES ('4899', '冷湖行委', '3', '469', '0'); INSERT INTO `district` VALUES ('4900', '大柴旦行委', '3', '469', '0'); INSERT INTO `district` VALUES ('4901', '天峻县', '3', '469', '0'); INSERT INTO `district` VALUES ('4902', '德令哈市', '3', '469', '0'); INSERT INTO `district` VALUES ('4903', '格尔木市', '3', '469', '0'); INSERT INTO `district` VALUES ('4904', '茫崖行委', '3', '469', '0'); INSERT INTO `district` VALUES ('4905', '都兰县', '3', '469', '0'); INSERT INTO `district` VALUES ('4906', '兴庆区', '3', '470', '0'); INSERT INTO `district` VALUES ('4907', '永宁县', '3', '470', '0'); INSERT INTO `district` VALUES ('4908', '灵武市', '3', '470', '0'); INSERT INTO `district` VALUES ('4909', '西夏区', '3', '470', '0'); INSERT INTO `district` VALUES ('4910', '贺兰县', '3', '470', '0'); INSERT INTO `district` VALUES ('4911', '金凤区', '3', '470', '0'); INSERT INTO `district` VALUES ('4912', '大武口区', '3', '471', '0'); INSERT INTO `district` VALUES ('4913', '平罗县', '3', '471', '0'); INSERT INTO `district` VALUES ('4914', '惠农区', '3', '471', '0'); INSERT INTO `district` VALUES ('4915', '利通区', '3', '472', '0'); INSERT INTO `district` VALUES ('4916', '同心县', '3', '472', '0'); INSERT INTO `district` VALUES ('4917', '盐池县', '3', '472', '0'); INSERT INTO `district` VALUES ('4918', '青铜峡市', '3', '472', '0'); INSERT INTO `district` VALUES ('4919', '原州区', '3', '473', '0'); INSERT INTO `district` VALUES ('4920', '彭阳县', '3', '473', '0'); INSERT INTO `district` VALUES ('4921', '泾源县', '3', '473', '0'); INSERT INTO `district` VALUES ('4922', '西吉县', '3', '473', '0'); INSERT INTO `district` VALUES ('4923', '隆德县', '3', '473', '0'); INSERT INTO `district` VALUES ('4924', '中宁县', '3', '474', '0'); INSERT INTO `district` VALUES ('4925', '沙坡头区', '3', '474', '0'); INSERT INTO `district` VALUES ('4926', '海原县', '3', '474', '0'); INSERT INTO `district` VALUES ('4927', '东山区', '3', '475', '0'); INSERT INTO `district` VALUES ('4928', '乌鲁木齐县', '3', '475', '0'); INSERT INTO `district` VALUES ('4929', '天山区', '3', '475', '0'); INSERT INTO `district` VALUES ('4930', '头屯河区', '3', '475', '0'); INSERT INTO `district` VALUES ('4931', '新市区', '3', '475', '0'); INSERT INTO `district` VALUES ('4932', '水磨沟区', '3', '475', '0'); INSERT INTO `district` VALUES ('4933', '沙依巴克区', '3', '475', '0'); INSERT INTO `district` VALUES ('4934', '达坂城区', '3', '475', '0'); INSERT INTO `district` VALUES ('4935', '乌尔禾区', '3', '476', '0'); INSERT INTO `district` VALUES ('4936', '克拉玛依区', '3', '476', '0'); INSERT INTO `district` VALUES ('4937', '独山子区', '3', '476', '0'); INSERT INTO `district` VALUES ('4938', '白碱滩区', '3', '476', '0'); INSERT INTO `district` VALUES ('4939', '吐鲁番市', '3', '477', '0'); INSERT INTO `district` VALUES ('4940', '托克逊县', '3', '477', '0'); INSERT INTO `district` VALUES ('4941', '鄯善县', '3', '477', '0'); INSERT INTO `district` VALUES ('4942', '伊吾县', '3', '478', '0'); INSERT INTO `district` VALUES ('4943', '哈密市', '3', '478', '0'); INSERT INTO `district` VALUES ('4944', '巴里坤哈萨克自治县', '3', '478', '0'); INSERT INTO `district` VALUES ('4945', '吉木萨尔县', '3', '479', '0'); INSERT INTO `district` VALUES ('4946', '呼图壁县', '3', '479', '0'); INSERT INTO `district` VALUES ('4947', '奇台县', '3', '479', '0'); INSERT INTO `district` VALUES ('4948', '昌吉市', '3', '479', '0'); INSERT INTO `district` VALUES ('4949', '木垒哈萨克自治县', '3', '479', '0'); INSERT INTO `district` VALUES ('4950', '玛纳斯县', '3', '479', '0'); INSERT INTO `district` VALUES ('4951', '米泉市', '3', '479', '0'); INSERT INTO `district` VALUES ('4952', '阜康市', '3', '479', '0'); INSERT INTO `district` VALUES ('4953', '博乐市', '3', '480', '0'); INSERT INTO `district` VALUES ('4954', '温泉县', '3', '480', '0'); INSERT INTO `district` VALUES ('4955', '精河县', '3', '480', '0'); INSERT INTO `district` VALUES ('4956', '博湖县', '3', '481', '0'); INSERT INTO `district` VALUES ('4957', '和硕县', '3', '481', '0'); INSERT INTO `district` VALUES ('4958', '和静县', '3', '481', '0'); INSERT INTO `district` VALUES ('4959', '尉犁县', '3', '481', '0'); INSERT INTO `district` VALUES ('4960', '库尔勒市', '3', '481', '0'); INSERT INTO `district` VALUES ('4961', '焉耆回族自治县', '3', '481', '0'); INSERT INTO `district` VALUES ('4962', '若羌县', '3', '481', '0'); INSERT INTO `district` VALUES ('4963', '轮台县', '3', '481', '0'); INSERT INTO `district` VALUES ('4964', '乌什县', '3', '482', '0'); INSERT INTO `district` VALUES ('4965', '库车县', '3', '482', '0'); INSERT INTO `district` VALUES ('4966', '拜城县', '3', '482', '0'); INSERT INTO `district` VALUES ('4967', '新和县', '3', '482', '0'); INSERT INTO `district` VALUES ('4968', '柯坪县', '3', '482', '0'); INSERT INTO `district` VALUES ('4969', '沙雅县', '3', '482', '0'); INSERT INTO `district` VALUES ('4970', '温宿县', '3', '482', '0'); INSERT INTO `district` VALUES ('4971', '阿克苏市', '3', '482', '0'); INSERT INTO `district` VALUES ('4972', '阿瓦提县', '3', '482', '0'); INSERT INTO `district` VALUES ('4973', '乌恰县', '3', '483', '0'); INSERT INTO `district` VALUES ('4974', '阿克陶县', '3', '483', '0'); INSERT INTO `district` VALUES ('4975', '阿合奇县', '3', '483', '0'); INSERT INTO `district` VALUES ('4976', '阿图什市', '3', '483', '0'); INSERT INTO `district` VALUES ('4977', '伽师县', '3', '484', '0'); INSERT INTO `district` VALUES ('4978', '叶城县', '3', '484', '0'); INSERT INTO `district` VALUES ('4979', '喀什市', '3', '484', '0'); INSERT INTO `district` VALUES ('4980', '塔什库尔干塔吉克自治县', '3', '484', '0'); INSERT INTO `district` VALUES ('4981', '岳普湖县', '3', '484', '0'); INSERT INTO `district` VALUES ('4982', '巴楚县', '3', '484', '0'); INSERT INTO `district` VALUES ('4983', '泽普县', '3', '484', '0'); INSERT INTO `district` VALUES ('4984', '疏勒县', '3', '484', '0'); INSERT INTO `district` VALUES ('4985', '疏附县', '3', '484', '0'); INSERT INTO `district` VALUES ('4986', '英吉沙县', '3', '484', '0'); INSERT INTO `district` VALUES ('4987', '莎车县', '3', '484', '0'); INSERT INTO `district` VALUES ('4988', '麦盖提县', '3', '484', '0'); INSERT INTO `district` VALUES ('4989', '于田县', '3', '485', '0'); INSERT INTO `district` VALUES ('4990', '和田县', '3', '485', '0'); INSERT INTO `district` VALUES ('4991', '和田市', '3', '485', '0'); INSERT INTO `district` VALUES ('4992', '墨玉县', '3', '485', '0'); INSERT INTO `district` VALUES ('4993', '民丰县', '3', '485', '0'); INSERT INTO `district` VALUES ('4994', '洛浦县', '3', '485', '0'); INSERT INTO `district` VALUES ('4995', '皮山县', '3', '485', '0'); INSERT INTO `district` VALUES ('4996', '策勒县', '3', '485', '0'); INSERT INTO `district` VALUES ('4997', '伊宁县', '3', '486', '0'); INSERT INTO `district` VALUES ('4998', '伊宁市', '3', '486', '0'); INSERT INTO `district` VALUES ('4999', '奎屯市', '3', '486', '0'); INSERT INTO `district` VALUES ('5000', '察布查尔锡伯自治县', '3', '486', '0'); INSERT INTO `district` VALUES ('5001', '尼勒克县', '3', '486', '0'); INSERT INTO `district` VALUES ('5002', '巩留县', '3', '486', '0'); INSERT INTO `district` VALUES ('5003', '新源县', '3', '486', '0'); INSERT INTO `district` VALUES ('5004', '昭苏县', '3', '486', '0'); INSERT INTO `district` VALUES ('5005', '特克斯县', '3', '486', '0'); INSERT INTO `district` VALUES ('5006', '霍城县', '3', '486', '0'); INSERT INTO `district` VALUES ('5007', '乌苏市', '3', '487', '0'); INSERT INTO `district` VALUES ('5008', '和布克赛尔蒙古自治县', '3', '487', '0'); INSERT INTO `district` VALUES ('5009', '塔城市', '3', '487', '0'); INSERT INTO `district` VALUES ('5010', '托里县', '3', '487', '0'); INSERT INTO `district` VALUES ('5011', '沙湾县', '3', '487', '0'); INSERT INTO `district` VALUES ('5012', '裕民县', '3', '487', '0'); INSERT INTO `district` VALUES ('5013', '额敏县', '3', '487', '0'); INSERT INTO `district` VALUES ('5014', '吉木乃县', '3', '488', '0'); INSERT INTO `district` VALUES ('5015', '哈巴河县', '3', '488', '0'); INSERT INTO `district` VALUES ('5016', '富蕴县', '3', '488', '0'); INSERT INTO `district` VALUES ('5017', '布尔津县', '3', '488', '0'); INSERT INTO `district` VALUES ('5018', '福海县', '3', '488', '0'); INSERT INTO `district` VALUES ('5019', '阿勒泰市', '3', '488', '0'); INSERT INTO `district` VALUES ('5020', '青河县', '3', '488', '0'); INSERT INTO `district` VALUES ('5021', '石河子市', '3', '489', '0'); INSERT INTO `district` VALUES ('5022', '阿拉尔市', '3', '490', '0'); INSERT INTO `district` VALUES ('5023', '图木舒克市', '3', '491', '0'); INSERT INTO `district` VALUES ('5024', '五家渠市', '3', '492', '0'); INSERT INTO `district` VALUES ('5025', '北京市', '2', '1', '0'); INSERT INTO `district` VALUES ('5026', '天津市', '2', '2', '0'); INSERT INTO `district` VALUES ('5027', '上海市', '2', '9', '0'); INSERT INTO `district` VALUES ('5028', '重庆市', '2', '22', '0'); INSERT INTO `district` VALUES ('5029', '万江街道', '3', '305', '0'); INSERT INTO `district` VALUES ('5030', '东坑镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5031', '东城街道', '3', '305', '0'); INSERT INTO `district` VALUES ('5032', '中堂镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5033', '企石镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5034', '凤岗镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5035', '南城街道', '3', '305', '0'); INSERT INTO `district` VALUES ('5036', '厚街镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5037', '塘厦镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5038', '大岭山镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5039', '大朗镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5040', '寮步镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5041', '常平镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5042', '望牛墩镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5043', '桥头镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5044', '樟木头镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5045', '横沥镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5046', '沙田镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5047', '洪梅镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5048', '清溪镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5049', '石排镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5050', '石碣镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5051', '石龙镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5052', '茶山镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5053', '莞城街道', '3', '305', '0'); INSERT INTO `district` VALUES ('5054', '虎门镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5055', '谢岗镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5056', '道窖镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5057', '长安镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5058', '高埗镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5059', '麻涌镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5060', '黄江镇', '3', '305', '0'); INSERT INTO `district` VALUES ('5062', '凤凰镇', '3', '325', '0'); INSERT INTO `district` VALUES ('5063', '天涯镇', '3', '325', '0'); INSERT INTO `district` VALUES ('5064', '崖城镇', '3', '325', '0'); INSERT INTO `district` VALUES ('5065', '河东区', '3', '325', '0'); INSERT INTO `district` VALUES ('5066', '河西区', '3', '325', '0'); INSERT INTO `district` VALUES ('5067', '海棠湾镇', '3', '325', '0'); INSERT INTO `district` VALUES ('5068', '田独镇', '3', '325', '0'); INSERT INTO `district` VALUES ('5069', '三乡镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5070', '三角镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5071', '东凤镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5072', '东区街道', '3', '306', '0'); INSERT INTO `district` VALUES ('5073', '东升镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5074', '中山港街道', '3', '306', '0'); INSERT INTO `district` VALUES ('5075', '五桂山街道', '3', '306', '0'); INSERT INTO `district` VALUES ('5076', '南头镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5077', '南朗镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5078', '古镇镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5079', '坦洲镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5080', '大涌镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5081', '小榄镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5082', '板芙镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5083', '横栏镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5084', '民众镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5085', '沙溪镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5086', '港口镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5087', '环城街道', '3', '306', '0'); INSERT INTO `district` VALUES ('5088', '石岐街道', '3', '306', '0'); INSERT INTO `district` VALUES ('5089', '神湾镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5090', '西区街道', '3', '306', '0'); INSERT INTO `district` VALUES ('5091', '阜沙镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5092', '黄圃镇', '3', '306', '0'); INSERT INTO `district` VALUES ('5094', '九真镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5095', '佛子山镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5096', '候口街道', '3', '273', '0'); INSERT INTO `district` VALUES ('5097', '净潭乡', '3', '273', '0'); INSERT INTO `district` VALUES ('5098', '卢市镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5099', '多宝镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5100', '多祥镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5101', '小板镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5102', '岳口街道', '3', '273', '0'); INSERT INTO `district` VALUES ('5103', '干驿镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5104', '张港镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5105', '彭市镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5106', '拖市镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5107', '杨林街道', '3', '273', '0'); INSERT INTO `district` VALUES ('5108', '横林镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5109', '汪场镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5110', '渔薪镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5111', '皂市镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5112', '石河镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5113', '竟陵街道', '3', '273', '0'); INSERT INTO `district` VALUES ('5114', '胡市镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5115', '蒋场镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5116', '马湾镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5117', '麻洋镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5118', '黄潭镇', '3', '273', '0'); INSERT INTO `district` VALUES ('5119', '阿尔巴尼亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5120', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5121', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5122', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5123', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5124', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5125', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5126', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5127', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5128', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5129', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5130', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5131', '', '3', '5119', '0'); INSERT INTO `district` VALUES ('5132', '阿尔及利亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5133', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5134', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5135', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5136', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5137', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5138', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5139', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5140', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5141', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5142', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5143', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5144', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5145', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5146', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5147', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5148', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5149', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5150', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5151', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5152', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5153', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5154', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5155', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5156', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5157', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5158', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5159', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5160', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5161', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5162', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5163', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5164', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5165', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5166', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5167', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5168', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5169', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5170', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5171', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5172', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5173', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5174', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5175', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5176', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5177', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5178', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5179', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5180', '', '3', '5132', '0'); INSERT INTO `district` VALUES ('5181', '阿富汗', '2', '35', '0'); INSERT INTO `district` VALUES ('5182', '', '3', '5181', '0'); INSERT INTO `district` VALUES ('5183', '', '3', '5181', '0'); INSERT INTO `district` VALUES ('5184', '', '3', '5181', '0'); INSERT INTO `district` VALUES ('5185', '', '3', '5181', '0'); INSERT INTO `district` VALUES ('5186', '阿根廷', '2', '35', '0'); INSERT INTO `district` VALUES ('5187', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5188', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5189', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5190', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5191', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5192', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5193', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5194', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5195', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5196', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5197', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5198', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5199', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5200', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5201', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5202', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5203', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5204', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5205', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5206', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5207', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5208', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5209', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5210', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5211', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5212', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5213', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5214', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5215', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5216', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5217', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5218', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5219', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5220', '', '3', '5186', '0'); INSERT INTO `district` VALUES ('5221', '阿拉伯联合酋长国', '2', '35', '0'); INSERT INTO `district` VALUES ('5222', '', '3', '5221', '0'); INSERT INTO `district` VALUES ('5223', '', '3', '5221', '0'); INSERT INTO `district` VALUES ('5224', '', '3', '5221', '0'); INSERT INTO `district` VALUES ('5225', '', '3', '5221', '0'); INSERT INTO `district` VALUES ('5226', '阿曼', '2', '35', '0'); INSERT INTO `district` VALUES ('5227', '阿塞拜疆', '2', '35', '0'); INSERT INTO `district` VALUES ('5228', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5229', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5230', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5231', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5232', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5233', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5234', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5235', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5236', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5237', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5238', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5239', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5240', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5241', '', '3', '5227', '0'); INSERT INTO `district` VALUES ('5242', '埃及', '2', '35', '0'); INSERT INTO `district` VALUES ('5243', '埃塞俄比亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5244', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5245', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5246', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5247', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5248', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5249', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5250', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5251', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5252', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5253', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5254', '', '3', '5243', '0'); INSERT INTO `district` VALUES ('5255', '爱尔兰', '2', '35', '0'); INSERT INTO `district` VALUES ('5256', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5257', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5258', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5259', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5260', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5261', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5262', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5263', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5264', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5265', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5266', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5267', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5268', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5269', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5270', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5271', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5272', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5273', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5274', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5275', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5276', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5277', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5278', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5279', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5280', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5281', '', '3', '5255', '0'); INSERT INTO `district` VALUES ('5282', '爱沙尼亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5283', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5284', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5285', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5286', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5287', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5288', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5289', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5290', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5291', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5292', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5293', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5294', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5295', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5296', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5297', '', '3', '5282', '0'); INSERT INTO `district` VALUES ('5298', '安道尔', '2', '35', '0'); INSERT INTO `district` VALUES ('5299', '', '3', '5298', '0'); INSERT INTO `district` VALUES ('5300', '', '3', '5298', '0'); INSERT INTO `district` VALUES ('5301', '', '3', '5298', '0'); INSERT INTO `district` VALUES ('5302', '', '3', '5298', '0'); INSERT INTO `district` VALUES ('5303', '', '3', '5298', '0'); INSERT INTO `district` VALUES ('5304', '', '3', '5298', '0'); INSERT INTO `district` VALUES ('5305', '', '3', '5298', '0'); INSERT INTO `district` VALUES ('5306', '安哥拉', '2', '35', '0'); INSERT INTO `district` VALUES ('5307', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5308', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5309', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5310', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5311', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5312', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5313', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5314', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5315', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5316', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5317', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5318', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5319', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5320', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5321', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5322', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5323', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5324', '', '3', '5306', '0'); INSERT INTO `district` VALUES ('5325', '安提瓜岛和巴布达', '2', '35', '0'); INSERT INTO `district` VALUES ('5326', '澳大利亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5327', '北部地区', '3', '5326', '0'); INSERT INTO `district` VALUES ('5328', '', '4', '5327', '0'); INSERT INTO `district` VALUES ('5329', '', '4', '5327', '0'); INSERT INTO `district` VALUES ('5330', '堪培拉', '3', '5326', '0'); INSERT INTO `district` VALUES ('5331', '', '4', '5330', '0'); INSERT INTO `district` VALUES ('5332', '昆士兰', '3', '5326', '0'); INSERT INTO `district` VALUES ('5333', '', '4', '5332', '0'); INSERT INTO `district` VALUES ('5334', '', '4', '5332', '0'); INSERT INTO `district` VALUES ('5335', '', '4', '5332', '0'); INSERT INTO `district` VALUES ('5336', '', '4', '5332', '0'); INSERT INTO `district` VALUES ('5337', '', '4', '5332', '0'); INSERT INTO `district` VALUES ('5338', '', '4', '5332', '0'); INSERT INTO `district` VALUES ('5339', '南澳大利亚', '3', '5326', '0'); INSERT INTO `district` VALUES ('5340', '', '4', '5339', '0'); INSERT INTO `district` VALUES ('5341', '', '4', '5339', '0'); INSERT INTO `district` VALUES ('5342', '', '4', '5339', '0'); INSERT INTO `district` VALUES ('5343', '', '4', '5339', '0'); INSERT INTO `district` VALUES ('5344', '', '4', '5339', '0'); INSERT INTO `district` VALUES ('5345', '', '4', '5339', '0'); INSERT INTO `district` VALUES ('5346', '', '4', '5339', '0'); INSERT INTO `district` VALUES ('5347', '', '4', '5339', '0'); INSERT INTO `district` VALUES ('5348', '塔斯马尼亚', '3', '5326', '0'); INSERT INTO `district` VALUES ('5349', '', '4', '5348', '0'); INSERT INTO `district` VALUES ('5350', '', '4', '5348', '0'); INSERT INTO `district` VALUES ('5351', '', '4', '5348', '0'); INSERT INTO `district` VALUES ('5352', '', '4', '5348', '0'); INSERT INTO `district` VALUES ('5353', '维多利亚', '3', '5326', '0'); INSERT INTO `district` VALUES ('5354', '', '4', '5353', '0'); INSERT INTO `district` VALUES ('5355', '', '4', '5353', '0'); INSERT INTO `district` VALUES ('5356', '西澳大利亚', '3', '5326', '0'); INSERT INTO `district` VALUES ('5357', '', '4', '5356', '0'); INSERT INTO `district` VALUES ('5358', '', '4', '5356', '0'); INSERT INTO `district` VALUES ('5359', '', '4', '5356', '0'); INSERT INTO `district` VALUES ('5360', '', '4', '5356', '0'); INSERT INTO `district` VALUES ('5361', '', '4', '5356', '0'); INSERT INTO `district` VALUES ('5362', '', '4', '5356', '0'); INSERT INTO `district` VALUES ('5363', '', '4', '5356', '0'); INSERT INTO `district` VALUES ('5364', '新南威尔士', '3', '5326', '0'); INSERT INTO `district` VALUES ('5365', '', '4', '5364', '0'); INSERT INTO `district` VALUES ('5366', '', '4', '5364', '0'); INSERT INTO `district` VALUES ('5367', '', '4', '5364', '0'); INSERT INTO `district` VALUES ('5368', '奥地利', '2', '35', '0'); INSERT INTO `district` VALUES ('5369', '', '3', '5368', '0'); INSERT INTO `district` VALUES ('5370', '', '3', '5368', '0'); INSERT INTO `district` VALUES ('5371', '', '3', '5368', '0'); INSERT INTO `district` VALUES ('5372', '', '3', '5368', '0'); INSERT INTO `district` VALUES ('5373', '', '3', '5368', '0'); INSERT INTO `district` VALUES ('5374', '', '3', '5368', '0'); INSERT INTO `district` VALUES ('5375', '', '3', '5368', '0'); INSERT INTO `district` VALUES ('5376', '', '3', '5368', '0'); INSERT INTO `district` VALUES ('5377', '', '3', '5368', '0'); INSERT INTO `district` VALUES ('5378', '巴巴多斯岛', '2', '35', '0'); INSERT INTO `district` VALUES ('5379', '巴布亚新几内亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5380', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5381', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5382', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5383', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5384', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5385', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5386', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5387', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5388', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5389', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5390', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5391', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5392', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5393', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5394', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5395', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5396', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5397', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5398', '', '3', '5379', '0'); INSERT INTO `district` VALUES ('5399', '巴基斯坦', '2', '35', '0'); INSERT INTO `district` VALUES ('5400', '巴拉圭', '2', '35', '0'); INSERT INTO `district` VALUES ('5401', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5402', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5403', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5404', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5405', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5406', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5407', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5408', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5409', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5410', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5411', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5412', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5413', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5414', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5415', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5416', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5417', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5418', '', '3', '5400', '0'); INSERT INTO `district` VALUES ('5419', '巴勒斯坦', '2', '35', '0'); INSERT INTO `district` VALUES ('5420', '', '3', '5419', '0'); INSERT INTO `district` VALUES ('5421', '', '3', '5419', '0'); INSERT INTO `district` VALUES ('5422', '巴林', '2', '35', '0'); INSERT INTO `district` VALUES ('5423', '', '3', '5422', '0'); INSERT INTO `district` VALUES ('5424', '', '3', '5422', '0'); INSERT INTO `district` VALUES ('5425', '', '3', '5422', '0'); INSERT INTO `district` VALUES ('5426', '', '3', '5422', '0'); INSERT INTO `district` VALUES ('5427', '', '3', '5422', '0'); INSERT INTO `district` VALUES ('5428', '', '3', '5422', '0'); INSERT INTO `district` VALUES ('5429', '', '3', '5422', '0'); INSERT INTO `district` VALUES ('5430', '', '3', '5422', '0'); INSERT INTO `district` VALUES ('5431', '', '3', '5422', '0'); INSERT INTO `district` VALUES ('5432', '巴西', '2', '35', '0'); INSERT INTO `district` VALUES ('5433', '白俄罗斯', '2', '35', '0'); INSERT INTO `district` VALUES ('5434', '', '3', '5433', '0'); INSERT INTO `district` VALUES ('5435', '', '3', '5433', '0'); INSERT INTO `district` VALUES ('5436', '', '3', '5433', '0'); INSERT INTO `district` VALUES ('5437', '', '3', '5433', '0'); INSERT INTO `district` VALUES ('5438', '', '3', '5433', '0'); INSERT INTO `district` VALUES ('5439', '', '3', '5433', '0'); INSERT INTO `district` VALUES ('5440', '保加利亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5441', '贝宁', '2', '35', '0'); INSERT INTO `district` VALUES ('5442', '比利时', '2', '35', '0'); INSERT INTO `district` VALUES ('5443', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5444', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5445', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5446', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5447', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5448', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5449', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5450', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5451', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5452', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5453', '', '3', '5442', '0'); INSERT INTO `district` VALUES ('5454', '波多黎各', '2', '35', '0'); INSERT INTO `district` VALUES ('5455', '波兰', '2', '35', '0'); INSERT INTO `district` VALUES ('5456', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5457', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5458', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5459', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5460', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5461', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5462', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5463', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5464', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5465', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5466', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5467', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5468', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5469', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5470', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5471', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5472', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5473', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5474', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5475', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5476', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5477', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5478', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5479', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5480', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5481', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5482', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5483', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5484', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5485', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5486', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5487', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5488', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5489', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5490', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5491', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5492', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5493', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5494', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5495', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5496', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5497', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5498', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5499', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5500', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5501', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5502', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5503', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5504', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5505', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5506', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5507', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5508', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5509', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5510', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5511', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5512', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5513', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5514', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5515', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5516', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5517', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5518', '', '3', '5455', '0'); INSERT INTO `district` VALUES ('5519', '玻利维亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5520', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5521', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5522', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5523', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5524', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5525', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5526', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5527', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5528', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5529', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5530', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5531', '', '3', '5519', '0'); INSERT INTO `district` VALUES ('5532', '波斯尼亚和黑塞哥维那', '2', '35', '0'); INSERT INTO `district` VALUES ('5533', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5534', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5535', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5536', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5537', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5538', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5539', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5540', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5541', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5542', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5543', '', '3', '5532', '0'); INSERT INTO `district` VALUES ('5544', '伯利兹', '2', '35', '0'); INSERT INTO `district` VALUES ('5545', '布基纳法索', '2', '35', '0'); INSERT INTO `district` VALUES ('5546', '布隆迪', '2', '35', '0'); INSERT INTO `district` VALUES ('5547', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5548', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5549', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5550', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5551', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5552', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5553', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5554', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5555', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5556', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5557', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5558', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5559', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5560', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5561', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5562', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5563', '', '3', '5546', '0'); INSERT INTO `district` VALUES ('5564', '朝鲜', '2', '35', '0'); INSERT INTO `district` VALUES ('5565', '丹麦', '2', '35', '0'); INSERT INTO `district` VALUES ('5566', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5567', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5568', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5569', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5570', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5571', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5572', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5573', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5574', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5575', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5576', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5577', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5578', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5579', '', '3', '5565', '0'); INSERT INTO `district` VALUES ('5580', '德国', '2', '35', '0'); INSERT INTO `district` VALUES ('5581', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5582', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5583', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5584', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5585', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5586', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5587', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5588', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5589', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5590', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5591', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5592', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5593', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5594', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5595', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5596', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5597', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5598', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5599', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5600', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5601', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5602', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5603', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5604', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5605', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5606', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5607', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5608', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5609', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5610', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5611', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5612', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5613', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5614', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5615', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5616', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5617', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5618', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5619', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5620', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5621', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5622', '', '3', '5580', '0'); INSERT INTO `district` VALUES ('5623', '东帝汶', '2', '35', '0'); INSERT INTO `district` VALUES ('5624', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5625', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5626', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5627', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5628', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5629', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5630', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5631', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5632', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5633', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5634', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5635', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5636', '', '3', '5623', '0'); INSERT INTO `district` VALUES ('5637', '多哥', '2', '35', '0'); INSERT INTO `district` VALUES ('5638', '', '3', '5637', '0'); INSERT INTO `district` VALUES ('5639', '', '3', '5637', '0'); INSERT INTO `district` VALUES ('5640', '', '3', '5637', '0'); INSERT INTO `district` VALUES ('5641', '', '3', '5637', '0'); INSERT INTO `district` VALUES ('5642', '', '3', '5637', '0'); INSERT INTO `district` VALUES ('5643', '多米尼加共和国', '2', '35', '0'); INSERT INTO `district` VALUES ('5644', '俄罗斯', '2', '35', '0'); INSERT INTO `district` VALUES ('5645', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5646', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5647', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5648', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5649', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5650', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5651', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5652', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5653', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5654', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5655', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5656', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5657', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5658', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5659', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5660', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5661', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5662', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5663', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5664', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5665', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5666', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5667', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5668', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5669', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5670', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5671', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5672', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5673', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5674', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5675', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5676', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5677', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5678', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5679', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5680', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5681', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5682', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5683', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5684', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5685', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5686', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5687', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5688', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5689', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5690', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5691', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5692', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5693', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5694', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5695', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5696', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5697', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5698', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5699', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5700', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5701', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5702', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5703', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5704', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5705', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5706', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5707', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5708', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5709', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5710', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5711', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5712', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5713', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5714', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5715', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5716', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5717', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5718', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5719', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5720', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5721', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5722', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5723', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5724', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5725', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5726', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5727', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5728', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5729', '', '3', '5644', '0'); INSERT INTO `district` VALUES ('5730', '厄瓜多尔', '2', '35', '0'); INSERT INTO `district` VALUES ('5731', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5732', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5733', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5734', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5735', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5736', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5737', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5738', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5739', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5740', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5741', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5742', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5743', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5744', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5745', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5746', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5747', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5748', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5749', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5750', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5751', '', '3', '5730', '0'); INSERT INTO `district` VALUES ('5752', '厄立特里亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5753', '', '3', '5752', '0'); INSERT INTO `district` VALUES ('5754', '', '3', '5752', '0'); INSERT INTO `district` VALUES ('5755', '', '3', '5752', '0'); INSERT INTO `district` VALUES ('5756', '', '3', '5752', '0'); INSERT INTO `district` VALUES ('5757', '', '3', '5752', '0'); INSERT INTO `district` VALUES ('5758', '', '3', '5752', '0'); INSERT INTO `district` VALUES ('5759', '法国', '2', '35', '0'); INSERT INTO `district` VALUES ('5760', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5761', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5762', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5763', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5764', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5765', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5766', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5767', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5768', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5769', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5770', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5771', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5772', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5773', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5774', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5775', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5776', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5777', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5778', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5779', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5780', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5781', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5782', '', '3', '5759', '0'); INSERT INTO `district` VALUES ('5783', '法属波利尼西亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5784', '法属南部领地', '2', '35', '0'); INSERT INTO `district` VALUES ('5785', '菲律宾', '2', '35', '0'); INSERT INTO `district` VALUES ('5786', '芬兰', '2', '35', '0'); INSERT INTO `district` VALUES ('5787', '佛得角', '2', '35', '0'); INSERT INTO `district` VALUES ('5788', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5789', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5790', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5791', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5792', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5793', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5794', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5795', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5796', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5797', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5798', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5799', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5800', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5801', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5802', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5803', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5804', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5805', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5806', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5807', '', '3', '5787', '0'); INSERT INTO `district` VALUES ('5808', '冈比亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5809', '刚果民主共和国', '2', '35', '0'); INSERT INTO `district` VALUES ('5810', '哥伦比亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5811', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5812', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5813', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5814', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5815', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5816', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5817', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5818', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5819', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5820', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5821', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5822', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5823', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5824', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5825', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5826', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5827', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5828', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5829', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5830', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5831', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5832', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5833', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5834', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5835', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5836', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5837', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5838', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5839', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5840', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5841', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5842', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5843', '', '3', '5810', '0'); INSERT INTO `district` VALUES ('5844', '哥斯达黎加', '2', '35', '0'); INSERT INTO `district` VALUES ('5845', '', '3', '5844', '0'); INSERT INTO `district` VALUES ('5846', '', '3', '5844', '0'); INSERT INTO `district` VALUES ('5847', '', '3', '5844', '0'); INSERT INTO `district` VALUES ('5848', '', '3', '5844', '0'); INSERT INTO `district` VALUES ('5849', '', '3', '5844', '0'); INSERT INTO `district` VALUES ('5850', '', '3', '5844', '0'); INSERT INTO `district` VALUES ('5851', '', '3', '5844', '0'); INSERT INTO `district` VALUES ('5852', '格林纳达', '2', '35', '0'); INSERT INTO `district` VALUES ('5853', '古巴', '2', '35', '0'); INSERT INTO `district` VALUES ('5854', '关岛', '2', '35', '0'); INSERT INTO `district` VALUES ('5855', '圭亚那', '2', '35', '0'); INSERT INTO `district` VALUES ('5856', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5857', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5858', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5859', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5860', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5861', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5862', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5863', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5864', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5865', '', '3', '5855', '0'); INSERT INTO `district` VALUES ('5866', '哈萨克斯坦', '2', '35', '0'); INSERT INTO `district` VALUES ('5867', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5868', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5869', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5870', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5871', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5872', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5873', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5874', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5875', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5876', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5877', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5878', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5879', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5880', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5881', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5882', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5883', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5884', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5885', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5886', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5887', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5888', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5889', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5890', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5891', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5892', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5893', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5894', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5895', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5896', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5897', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5898', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5899', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5900', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5901', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5902', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5903', '', '3', '5866', '0'); INSERT INTO `district` VALUES ('5904', '韩国', '2', '35', '0'); INSERT INTO `district` VALUES ('5905', '荷兰', '2', '35', '0'); INSERT INTO `district` VALUES ('5906', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5907', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5908', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5909', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5910', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5911', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5912', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5913', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5914', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5915', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5916', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5917', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5918', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5919', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5920', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5921', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5922', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5923', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5924', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5925', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5926', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5927', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5928', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5929', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5930', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5931', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5932', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5933', '', '3', '5905', '0'); INSERT INTO `district` VALUES ('5934', '赫德和麦克唐纳群岛', '2', '35', '0'); INSERT INTO `district` VALUES ('5935', '洪都拉斯', '2', '35', '0'); INSERT INTO `district` VALUES ('5936', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5937', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5938', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5939', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5940', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5941', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5942', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5943', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5944', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5945', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5946', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5947', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5948', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5949', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5950', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5951', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5952', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5953', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5954', '', '3', '5935', '0'); INSERT INTO `district` VALUES ('5955', '基里巴斯', '2', '35', '0'); INSERT INTO `district` VALUES ('5956', '', '3', '5955', '0'); INSERT INTO `district` VALUES ('5957', '', '3', '5955', '0'); INSERT INTO `district` VALUES ('5958', '', '3', '5955', '0'); INSERT INTO `district` VALUES ('5959', '吉布提', '2', '35', '0'); INSERT INTO `district` VALUES ('5960', '', '3', '5959', '0'); INSERT INTO `district` VALUES ('5961', '', '3', '5959', '0'); INSERT INTO `district` VALUES ('5962', '', '3', '5959', '0'); INSERT INTO `district` VALUES ('5963', '', '3', '5959', '0'); INSERT INTO `district` VALUES ('5964', '吉尔吉斯斯坦', '2', '35', '0'); INSERT INTO `district` VALUES ('5965', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5966', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5967', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5968', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5969', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5970', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5971', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5972', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5973', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5974', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5975', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5976', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5977', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5978', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5979', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5980', '', '3', '5964', '0'); INSERT INTO `district` VALUES ('5981', '几内亚', '2', '35', '0'); INSERT INTO `district` VALUES ('5982', '', '3', '5981', '0'); INSERT INTO `district` VALUES ('5983', '', '3', '5981', '0'); INSERT INTO `district` VALUES ('5984', '', '3', '5981', '0'); INSERT INTO `district` VALUES ('5985', '', '3', '5981', '0'); INSERT INTO `district` VALUES ('5986', '', '3', '5981', '0'); INSERT INTO `district` VALUES ('5987', '', '3', '5981', '0'); INSERT INTO `district` VALUES ('5988', '', '3', '5981', '0'); INSERT INTO `district` VALUES ('5989', '', '3', '5981', '0'); INSERT INTO `district` VALUES ('5990', '加拿大', '2', '35', '0'); INSERT INTO `district` VALUES ('5991', '加纳', '2', '35', '0'); INSERT INTO `district` VALUES ('5992', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('5993', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('5994', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('5995', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('5996', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('5997', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('5998', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('5999', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('6000', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('6001', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('6002', '', '3', '5991', '0'); INSERT INTO `district` VALUES ('6003', '加蓬', '2', '35', '0'); INSERT INTO `district` VALUES ('6004', '', '3', '6003', '0'); INSERT INTO `district` VALUES ('6005', '', '3', '6003', '0'); INSERT INTO `district` VALUES ('6006', '', '3', '6003', '0'); INSERT INTO `district` VALUES ('6007', '', '3', '6003', '0'); INSERT INTO `district` VALUES ('6008', '', '3', '6003', '0'); INSERT INTO `district` VALUES ('6009', '', '3', '6003', '0'); INSERT INTO `district` VALUES ('6010', '', '3', '6003', '0'); INSERT INTO `district` VALUES ('6011', '', '3', '6003', '0'); INSERT INTO `district` VALUES ('6012', '', '3', '6003', '0'); INSERT INTO `district` VALUES ('6013', '柬埔寨', '2', '35', '0'); INSERT INTO `district` VALUES ('6014', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6015', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6016', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6017', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6018', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6019', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6020', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6021', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6022', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6023', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6024', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6025', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6026', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6027', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6028', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6029', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6030', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6031', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6032', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6033', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6034', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6035', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6036', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6037', '', '3', '6013', '0'); INSERT INTO `district` VALUES ('6038', '捷克共和国', '2', '35', '0'); INSERT INTO `district` VALUES ('6039', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6040', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6041', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6042', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6043', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6044', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6045', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6046', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6047', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6048', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6049', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6050', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6051', '', '3', '6038', '0'); INSERT INTO `district` VALUES ('6052', '津巴布韦', '2', '35', '0'); INSERT INTO `district` VALUES ('6053', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6054', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6055', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6056', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6057', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6058', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6059', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6060', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6061', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6062', '', '3', '6052', '0'); INSERT INTO `district` VALUES ('6063', '喀麦隆', '2', '35', '0'); INSERT INTO `district` VALUES ('6064', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6065', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6066', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6067', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6068', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6069', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6070', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6071', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6072', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6073', '', '3', '6063', '0'); INSERT INTO `district` VALUES ('6074', '卡塔尔', '2', '35', '0'); INSERT INTO `district` VALUES ('6075', '', '3', '6074', '0'); INSERT INTO `district` VALUES ('6076', '', '3', '6074', '0'); INSERT INTO `district` VALUES ('6077', '', '3', '6074', '0'); INSERT INTO `district` VALUES ('6078', '', '3', '6074', '0'); INSERT INTO `district` VALUES ('6079', '', '3', '6074', '0'); INSERT INTO `district` VALUES ('6080', '', '3', '6074', '0'); INSERT INTO `district` VALUES ('6081', '', '3', '6074', '0'); INSERT INTO `district` VALUES ('6082', '', '3', '6074', '0'); INSERT INTO `district` VALUES ('6083', '', '3', '6074', '0'); INSERT INTO `district` VALUES ('6084', '科科斯群岛', '2', '35', '0'); INSERT INTO `district` VALUES ('6085', '科特迪瓦', '2', '35', '0'); INSERT INTO `district` VALUES ('6086', '克罗地亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6087', '肯尼亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6088', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6089', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6090', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6091', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6092', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6093', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6094', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6095', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6096', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6097', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6098', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6099', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6100', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6101', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6102', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6103', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6104', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6105', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6106', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6107', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6108', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6109', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6110', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6111', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6112', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6113', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6114', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6115', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6116', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6117', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6118', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6119', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6120', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6121', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6122', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6123', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6124', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6125', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6126', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6127', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6128', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6129', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6130', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6131', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6132', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6133', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6134', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6135', '', '3', '6087', '0'); INSERT INTO `district` VALUES ('6136', '拉脱维亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6137', '莱索托', '2', '35', '0'); INSERT INTO `district` VALUES ('6138', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6139', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6140', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6141', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6142', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6143', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6144', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6145', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6146', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6147', '', '3', '6137', '0'); INSERT INTO `district` VALUES ('6148', '老挝', '2', '35', '0'); INSERT INTO `district` VALUES ('6149', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6150', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6151', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6152', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6153', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6154', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6155', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6156', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6157', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6158', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6159', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6160', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6161', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6162', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6163', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6164', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6165', '', '3', '6148', '0'); INSERT INTO `district` VALUES ('6166', '黎巴嫩', '2', '35', '0'); INSERT INTO `district` VALUES ('6167', '', '3', '6166', '0'); INSERT INTO `district` VALUES ('6168', '', '3', '6166', '0'); INSERT INTO `district` VALUES ('6169', '', '3', '6166', '0'); INSERT INTO `district` VALUES ('6170', '', '3', '6166', '0'); INSERT INTO `district` VALUES ('6171', '', '3', '6166', '0'); INSERT INTO `district` VALUES ('6172', '', '3', '6166', '0'); INSERT INTO `district` VALUES ('6173', '利比里亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6174', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6175', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6176', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6177', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6178', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6179', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6180', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6181', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6182', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6183', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6184', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6185', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6186', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6187', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6188', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6189', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6190', '', '3', '6173', '0'); INSERT INTO `district` VALUES ('6191', '立陶宛', '2', '35', '0'); INSERT INTO `district` VALUES ('6192', '留尼旺岛', '2', '35', '0'); INSERT INTO `district` VALUES ('6193', '卢森堡', '2', '35', '0'); INSERT INTO `district` VALUES ('6194', '', '3', '6193', '0'); INSERT INTO `district` VALUES ('6195', '', '3', '6193', '0'); INSERT INTO `district` VALUES ('6196', '', '3', '6193', '0'); INSERT INTO `district` VALUES ('6197', '卢旺达', '2', '35', '0'); INSERT INTO `district` VALUES ('6198', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6199', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6200', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6201', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6202', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6203', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6204', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6205', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6206', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6207', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6208', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6209', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6210', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6211', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6212', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6213', '', '3', '6197', '0'); INSERT INTO `district` VALUES ('6214', '罗马尼亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6215', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6216', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6217', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6218', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6219', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6220', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6221', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6222', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6223', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6224', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6225', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6226', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6227', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6228', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6229', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6230', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6231', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6232', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6233', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6234', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6235', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6236', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6237', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6238', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6239', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6240', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6241', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6242', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6243', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6244', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6245', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6246', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6247', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6248', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6249', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6250', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6251', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6252', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6253', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6254', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6255', '', '3', '6214', '0'); INSERT INTO `district` VALUES ('6256', '马达加斯加', '2', '35', '0'); INSERT INTO `district` VALUES ('6257', '', '3', '6256', '0'); INSERT INTO `district` VALUES ('6258', '', '3', '6256', '0'); INSERT INTO `district` VALUES ('6259', '', '3', '6256', '0'); INSERT INTO `district` VALUES ('6260', '', '3', '6256', '0'); INSERT INTO `district` VALUES ('6261', '', '3', '6256', '0'); INSERT INTO `district` VALUES ('6262', '', '3', '6256', '0'); INSERT INTO `district` VALUES ('6263', '马尔代夫', '2', '35', '0'); INSERT INTO `district` VALUES ('6264', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6265', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6266', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6267', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6268', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6269', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6270', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6271', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6272', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6273', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6274', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6275', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6276', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6277', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6278', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6279', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6280', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6281', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6282', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6283', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6284', '', '3', '6263', '0'); INSERT INTO `district` VALUES ('6285', '马拉维', '2', '35', '0'); INSERT INTO `district` VALUES ('6286', '马来西亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6287', '槟榔屿', '3', '6286', '0'); INSERT INTO `district` VALUES ('6288', '', '4', '6287', '0'); INSERT INTO `district` VALUES ('6289', '', '4', '6287', '0'); INSERT INTO `district` VALUES ('6290', '', '4', '6287', '0'); INSERT INTO `district` VALUES ('6291', '', '4', '6287', '0'); INSERT INTO `district` VALUES ('6292', '玻璃市', '3', '6286', '0'); INSERT INTO `district` VALUES ('6293', '', '4', '6292', '0'); INSERT INTO `district` VALUES ('6294', '丁加奴', '3', '6286', '0'); INSERT INTO `district` VALUES ('6295', '', '4', '6294', '0'); INSERT INTO `district` VALUES ('6296', '', '4', '6294', '0'); INSERT INTO `district` VALUES ('6297', '', '4', '6294', '0'); INSERT INTO `district` VALUES ('6298', '', '4', '6294', '0'); INSERT INTO `district` VALUES ('6299', '', '4', '6294', '0'); INSERT INTO `district` VALUES ('6300', '', '4', '6294', '0'); INSERT INTO `district` VALUES ('6301', '', '4', '6294', '0'); INSERT INTO `district` VALUES ('6302', '吉打', '3', '6286', '0'); INSERT INTO `district` VALUES ('6303', '', '4', '6302', '0'); INSERT INTO `district` VALUES ('6304', '', '4', '6302', '0'); INSERT INTO `district` VALUES ('6305', '', '4', '6302', '0'); INSERT INTO `district` VALUES ('6306', '', '4', '6302', '0'); INSERT INTO `district` VALUES ('6307', '', '4', '6302', '0'); INSERT INTO `district` VALUES ('6308', '', '4', '6302', '0'); INSERT INTO `district` VALUES ('6309', '', '4', '6302', '0'); INSERT INTO `district` VALUES ('6310', '', '4', '6302', '0'); INSERT INTO `district` VALUES ('6311', '', '4', '6302', '0'); INSERT INTO `district` VALUES ('6312', '吉兰丹', '3', '6286', '0'); INSERT INTO `district` VALUES ('6313', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6314', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6315', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6316', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6317', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6318', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6319', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6320', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6321', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6322', '', '4', '6312', '0'); INSERT INTO `district` VALUES ('6323', '吉隆坡', '3', '6286', '0'); INSERT INTO `district` VALUES ('6324', '', '4', '6323', '0'); INSERT INTO `district` VALUES ('6325', '马六甲', '3', '6286', '0'); INSERT INTO `district` VALUES ('6326', '', '4', '6325', '0'); INSERT INTO `district` VALUES ('6327', '', '4', '6325', '0'); INSERT INTO `district` VALUES ('6328', '', '4', '6325', '0'); INSERT INTO `district` VALUES ('6329', '纳闽', '3', '6286', '0'); INSERT INTO `district` VALUES ('6330', '', '4', '6329', '0'); INSERT INTO `district` VALUES ('6331', '', '4', '6329', '0'); INSERT INTO `district` VALUES ('6332', '彭亨', '3', '6286', '0'); INSERT INTO `district` VALUES ('6333', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6334', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6335', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6336', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6337', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6338', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6339', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6340', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6341', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6342', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6343', '', '4', '6332', '0'); INSERT INTO `district` VALUES ('6344', '霹雳', '3', '6286', '0'); INSERT INTO `district` VALUES ('6345', '', '4', '6344', '0'); INSERT INTO `district` VALUES ('6346', '', '4', '6344', '0'); INSERT INTO `district` VALUES ('6347', '', '4', '6344', '0'); INSERT INTO `district` VALUES ('6348', '', '4', '6344', '0'); INSERT INTO `district` VALUES ('6349', '', '4', '6344', '0'); INSERT INTO `district` VALUES ('6350', '', '4', '6344', '0'); INSERT INTO `district` VALUES ('6351', '', '4', '6344', '0'); INSERT INTO `district` VALUES ('6352', '', '4', '6344', '0'); INSERT INTO `district` VALUES ('6353', '柔佛', '3', '6286', '0'); INSERT INTO `district` VALUES ('6354', '', '4', '6353', '0'); INSERT INTO `district` VALUES ('6355', '', '4', '6353', '0'); INSERT INTO `district` VALUES ('6356', '', '4', '6353', '0'); INSERT INTO `district` VALUES ('6357', '', '4', '6353', '0'); INSERT INTO `district` VALUES ('6358', '', '4', '6353', '0'); INSERT INTO `district` VALUES ('6359', '', '4', '6353', '0'); INSERT INTO `district` VALUES ('6360', '', '4', '6353', '0'); INSERT INTO `district` VALUES ('6361', '', '4', '6353', '0'); INSERT INTO `district` VALUES ('6362', '森美兰', '3', '6286', '0'); INSERT INTO `district` VALUES ('6363', '', '4', '6362', '0'); INSERT INTO `district` VALUES ('6364', '', '4', '6362', '0'); INSERT INTO `district` VALUES ('6365', '', '4', '6362', '0'); INSERT INTO `district` VALUES ('6366', '', '4', '6362', '0'); INSERT INTO `district` VALUES ('6367', '', '4', '6362', '0'); INSERT INTO `district` VALUES ('6368', '', '4', '6362', '0'); INSERT INTO `district` VALUES ('6369', '', '4', '6362', '0'); INSERT INTO `district` VALUES ('6370', '沙巴', '3', '6286', '0'); INSERT INTO `district` VALUES ('6371', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6372', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6373', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6374', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6375', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6376', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6377', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6378', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6379', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6380', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6381', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6382', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6383', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6384', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6385', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6386', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6387', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6388', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6389', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6390', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6391', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6392', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6393', '', '4', '6370', '0'); INSERT INTO `district` VALUES ('6394', '沙捞越', '3', '6286', '0'); INSERT INTO `district` VALUES ('6395', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6396', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6397', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6398', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6399', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6400', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6401', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6402', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6403', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6404', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6405', '', '4', '6394', '0'); INSERT INTO `district` VALUES ('6406', '雪兰莪', '3', '6286', '0'); INSERT INTO `district` VALUES ('6407', '', '4', '6406', '0'); INSERT INTO `district` VALUES ('6408', '', '4', '6406', '0'); INSERT INTO `district` VALUES ('6409', '', '4', '6406', '0'); INSERT INTO `district` VALUES ('6410', '', '4', '6406', '0'); INSERT INTO `district` VALUES ('6411', '', '4', '6406', '0'); INSERT INTO `district` VALUES ('6412', '', '4', '6406', '0'); INSERT INTO `district` VALUES ('6413', '', '4', '6406', '0'); INSERT INTO `district` VALUES ('6414', '', '4', '6406', '0'); INSERT INTO `district` VALUES ('6415', '马里', '2', '35', '0'); INSERT INTO `district` VALUES ('6416', '', '3', '6415', '0'); INSERT INTO `district` VALUES ('6417', '', '3', '6415', '0'); INSERT INTO `district` VALUES ('6418', '', '3', '6415', '0'); INSERT INTO `district` VALUES ('6419', '', '3', '6415', '0'); INSERT INTO `district` VALUES ('6420', '', '3', '6415', '0'); INSERT INTO `district` VALUES ('6421', '', '3', '6415', '0'); INSERT INTO `district` VALUES ('6422', '', '3', '6415', '0'); INSERT INTO `district` VALUES ('6423', '', '3', '6415', '0'); INSERT INTO `district` VALUES ('6424', '', '3', '6415', '0'); INSERT INTO `district` VALUES ('6425', '马绍尔群岛', '2', '35', '0'); INSERT INTO `district` VALUES ('6426', '马约特岛', '2', '35', '0'); INSERT INTO `district` VALUES ('6427', '毛里求斯', '2', '35', '0'); INSERT INTO `district` VALUES ('6428', '毛里塔尼亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6429', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6430', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6431', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6432', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6433', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6434', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6435', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6436', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6437', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6438', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6439', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6440', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6441', '', '3', '6428', '0'); INSERT INTO `district` VALUES ('6442', '美国', '2', '35', '0'); INSERT INTO `district` VALUES ('6443', '阿肯色', '3', '6442', '0'); INSERT INTO `district` VALUES ('6444', '', '4', '6443', '0'); INSERT INTO `district` VALUES ('6445', '', '4', '6443', '0'); INSERT INTO `district` VALUES ('6446', '', '4', '6443', '0'); INSERT INTO `district` VALUES ('6447', '阿拉巴马', '3', '6442', '0'); INSERT INTO `district` VALUES ('6448', '', '4', '6447', '0'); INSERT INTO `district` VALUES ('6449', '', '4', '6447', '0'); INSERT INTO `district` VALUES ('6450', '', '4', '6447', '0'); INSERT INTO `district` VALUES ('6451', '阿拉斯加', '3', '6442', '0'); INSERT INTO `district` VALUES ('6452', '', '4', '6451', '0'); INSERT INTO `district` VALUES ('6453', '', '4', '6451', '0'); INSERT INTO `district` VALUES ('6454', '', '4', '6451', '0'); INSERT INTO `district` VALUES ('6455', '爱达荷', '3', '6442', '0'); INSERT INTO `district` VALUES ('6456', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6457', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6458', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6459', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6460', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6461', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6462', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6463', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6464', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6465', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6466', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6467', '', '4', '6455', '0'); INSERT INTO `district` VALUES ('6468', '爱荷华', '3', '6442', '0'); INSERT INTO `district` VALUES ('6469', '', '4', '6468', '0'); INSERT INTO `district` VALUES ('6470', '', '4', '6468', '0'); INSERT INTO `district` VALUES ('6471', '', '4', '6468', '0'); INSERT INTO `district` VALUES ('6472', '北达科他', '3', '6442', '0'); INSERT INTO `district` VALUES ('6473', '', '4', '6472', '0'); INSERT INTO `district` VALUES ('6474', '', '4', '6472', '0'); INSERT INTO `district` VALUES ('6475', '', '4', '6472', '0'); INSERT INTO `district` VALUES ('6476', '', '4', '6472', '0'); INSERT INTO `district` VALUES ('6477', '北卡罗来纳', '3', '6442', '0'); INSERT INTO `district` VALUES ('6478', '', '4', '6477', '0'); INSERT INTO `district` VALUES ('6479', '', '4', '6477', '0'); INSERT INTO `district` VALUES ('6480', '', '4', '6477', '0'); INSERT INTO `district` VALUES ('6481', '', '4', '6477', '0'); INSERT INTO `district` VALUES ('6482', '', '4', '6477', '0'); INSERT INTO `district` VALUES ('6483', '', '4', '6477', '0'); INSERT INTO `district` VALUES ('6484', '', '4', '6477', '0'); INSERT INTO `district` VALUES ('6485', '宾夕法尼亚', '3', '6442', '0'); INSERT INTO `district` VALUES ('6486', '', '4', '6485', '0'); INSERT INTO `district` VALUES ('6487', '', '4', '6485', '0'); INSERT INTO `district` VALUES ('6488', '', '4', '6485', '0'); INSERT INTO `district` VALUES ('6489', '德克萨斯', '3', '6442', '0'); INSERT INTO `district` VALUES ('6490', '', '4', '6489', '0'); INSERT INTO `district` VALUES ('6491', '', '4', '6489', '0'); INSERT INTO `district` VALUES ('6492', '', '4', '6489', '0'); INSERT INTO `district` VALUES ('6493', '', '4', '6489', '0'); INSERT INTO `district` VALUES ('6494', '', '4', '6489', '0'); INSERT INTO `district` VALUES ('6495', '', '4', '6489', '0'); INSERT INTO `district` VALUES ('6496', '', '4', '6489', '0'); INSERT INTO `district` VALUES ('6497', '', '4', '6489', '0'); INSERT INTO `district` VALUES ('6498', '', '4', '6489', '0'); INSERT INTO `district` VALUES ('6499', '俄亥俄', '3', '6442', '0'); INSERT INTO `district` VALUES ('6500', '', '4', '6499', '0'); INSERT INTO `district` VALUES ('6501', '', '4', '6499', '0'); INSERT INTO `district` VALUES ('6502', '', '4', '6499', '0'); INSERT INTO `district` VALUES ('6503', '', '4', '6499', '0'); INSERT INTO `district` VALUES ('6504', '', '4', '6499', '0'); INSERT INTO `district` VALUES ('6505', '俄克拉荷马', '3', '6442', '0'); INSERT INTO `district` VALUES ('6506', '', '4', '6505', '0'); INSERT INTO `district` VALUES ('6507', '', '4', '6505', '0'); INSERT INTO `district` VALUES ('6508', '', '4', '6505', '0'); INSERT INTO `district` VALUES ('6509', '俄勒冈', '3', '6442', '0'); INSERT INTO `district` VALUES ('6510', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6511', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6512', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6513', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6514', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6515', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6516', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6517', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6518', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6519', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6520', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6521', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6522', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6523', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6524', '', '4', '6509', '0'); INSERT INTO `district` VALUES ('6525', '佛罗里达', '3', '6442', '0'); INSERT INTO `district` VALUES ('6526', '', '4', '6525', '0'); INSERT INTO `district` VALUES ('6527', '', '4', '6525', '0'); INSERT INTO `district` VALUES ('6528', '', '4', '6525', '0'); INSERT INTO `district` VALUES ('6529', '', '4', '6525', '0'); INSERT INTO `district` VALUES ('6530', '', '4', '6525', '0'); INSERT INTO `district` VALUES ('6531', '', '4', '6525', '0'); INSERT INTO `district` VALUES ('6532', '', '4', '6525', '0'); INSERT INTO `district` VALUES ('6533', '', '4', '6525', '0'); INSERT INTO `district` VALUES ('6534', '', '4', '6525', '0'); INSERT INTO `district` VALUES ('6535', '佛蒙特', '3', '6442', '0'); INSERT INTO `district` VALUES ('6536', '', '4', '6535', '0'); INSERT INTO `district` VALUES ('6537', '', '4', '6535', '0'); INSERT INTO `district` VALUES ('6538', '', '4', '6535', '0'); INSERT INTO `district` VALUES ('6539', '哥伦比亚特区', '3', '6442', '0'); INSERT INTO `district` VALUES ('6540', '', '4', '6539', '0'); INSERT INTO `district` VALUES ('6541', '华盛顿', '3', '6442', '0'); INSERT INTO `district` VALUES ('6542', '', '4', '6541', '0'); INSERT INTO `district` VALUES ('6543', '', '4', '6541', '0'); INSERT INTO `district` VALUES ('6544', '', '4', '6541', '0'); INSERT INTO `district` VALUES ('6545', '怀俄明', '3', '6442', '0'); INSERT INTO `district` VALUES ('6546', '', '4', '6545', '0'); INSERT INTO `district` VALUES ('6547', '', '4', '6545', '0'); INSERT INTO `district` VALUES ('6548', '', '4', '6545', '0'); INSERT INTO `district` VALUES ('6549', '', '4', '6545', '0'); INSERT INTO `district` VALUES ('6550', '', '4', '6545', '0'); INSERT INTO `district` VALUES ('6551', '', '4', '6545', '0'); INSERT INTO `district` VALUES ('6552', '加利福尼亚', '3', '6442', '0'); INSERT INTO `district` VALUES ('6553', '', '4', '6552', '0'); INSERT INTO `district` VALUES ('6554', '', '4', '6552', '0'); INSERT INTO `district` VALUES ('6555', '', '4', '6552', '0'); INSERT INTO `district` VALUES ('6556', '', '4', '6552', '0'); INSERT INTO `district` VALUES ('6557', '堪萨斯', '3', '6442', '0'); INSERT INTO `district` VALUES ('6558', '', '4', '6557', '0'); INSERT INTO `district` VALUES ('6559', '', '4', '6557', '0'); INSERT INTO `district` VALUES ('6560', '', '4', '6557', '0'); INSERT INTO `district` VALUES ('6561', '', '4', '6557', '0'); INSERT INTO `district` VALUES ('6562', '', '4', '6557', '0'); INSERT INTO `district` VALUES ('6563', '', '4', '6557', '0'); INSERT INTO `district` VALUES ('6564', '', '4', '6557', '0'); INSERT INTO `district` VALUES ('6565', '', '4', '6557', '0'); INSERT INTO `district` VALUES ('6566', '', '4', '6557', '0'); INSERT INTO `district` VALUES ('6567', '康涅狄格', '3', '6442', '0'); INSERT INTO `district` VALUES ('6568', '', '4', '6567', '0'); INSERT INTO `district` VALUES ('6569', '', '4', '6567', '0'); INSERT INTO `district` VALUES ('6570', '', '4', '6567', '0'); INSERT INTO `district` VALUES ('6571', '', '4', '6567', '0'); INSERT INTO `district` VALUES ('6572', '', '4', '6567', '0'); INSERT INTO `district` VALUES ('6573', '', '4', '6567', '0'); INSERT INTO `district` VALUES ('6574', '', '4', '6567', '0'); INSERT INTO `district` VALUES ('6575', '', '4', '6567', '0'); INSERT INTO `district` VALUES ('6576', '', '4', '6567', '0'); INSERT INTO `district` VALUES ('6577', '科罗拉多', '3', '6442', '0'); INSERT INTO `district` VALUES ('6578', '', '4', '6577', '0'); INSERT INTO `district` VALUES ('6579', '', '4', '6577', '0'); INSERT INTO `district` VALUES ('6580', '', '4', '6577', '0'); INSERT INTO `district` VALUES ('6581', '', '4', '6577', '0'); INSERT INTO `district` VALUES ('6582', '', '4', '6577', '0'); INSERT INTO `district` VALUES ('6583', '', '4', '6577', '0'); INSERT INTO `district` VALUES ('6584', '', '4', '6577', '0'); INSERT INTO `district` VALUES ('6585', '', '4', '6577', '0'); INSERT INTO `district` VALUES ('6586', '肯塔基', '3', '6442', '0'); INSERT INTO `district` VALUES ('6587', '', '4', '6586', '0'); INSERT INTO `district` VALUES ('6588', '', '4', '6586', '0'); INSERT INTO `district` VALUES ('6589', '', '4', '6586', '0'); INSERT INTO `district` VALUES ('6590', '路易斯安那', '3', '6442', '0'); INSERT INTO `district` VALUES ('6591', '', '4', '6590', '0'); INSERT INTO `district` VALUES ('6592', '', '4', '6590', '0'); INSERT INTO `district` VALUES ('6593', '', '4', '6590', '0'); INSERT INTO `district` VALUES ('6594', '罗德岛', '3', '6442', '0'); INSERT INTO `district` VALUES ('6595', '', '4', '6594', '0'); INSERT INTO `district` VALUES ('6596', '', '4', '6594', '0'); INSERT INTO `district` VALUES ('6597', '', '4', '6594', '0'); INSERT INTO `district` VALUES ('6598', '', '4', '6594', '0'); INSERT INTO `district` VALUES ('6599', '', '4', '6594', '0'); INSERT INTO `district` VALUES ('6600', '', '4', '6594', '0'); INSERT INTO `district` VALUES ('6601', '', '4', '6594', '0'); INSERT INTO `district` VALUES ('6602', '马里兰', '3', '6442', '0'); INSERT INTO `district` VALUES ('6603', '', '4', '6602', '0'); INSERT INTO `district` VALUES ('6604', '', '4', '6602', '0'); INSERT INTO `district` VALUES ('6605', '', '4', '6602', '0'); INSERT INTO `district` VALUES ('6606', '马萨诸塞', '3', '6442', '0'); INSERT INTO `district` VALUES ('6607', '', '4', '6606', '0'); INSERT INTO `district` VALUES ('6608', '', '4', '6606', '0'); INSERT INTO `district` VALUES ('6609', '', '4', '6606', '0'); INSERT INTO `district` VALUES ('6610', '蒙大拿', '3', '6442', '0'); INSERT INTO `district` VALUES ('6611', '', '4', '6610', '0'); INSERT INTO `district` VALUES ('6612', '', '4', '6610', '0'); INSERT INTO `district` VALUES ('6613', '', '4', '6610', '0'); INSERT INTO `district` VALUES ('6614', '密苏里', '3', '6442', '0'); INSERT INTO `district` VALUES ('6615', '', '4', '6614', '0'); INSERT INTO `district` VALUES ('6616', '', '4', '6614', '0'); INSERT INTO `district` VALUES ('6617', '', '4', '6614', '0'); INSERT INTO `district` VALUES ('6618', '', '4', '6614', '0'); INSERT INTO `district` VALUES ('6619', '', '4', '6614', '0'); INSERT INTO `district` VALUES ('6620', '密西西比', '3', '6442', '0'); INSERT INTO `district` VALUES ('6621', '', '4', '6620', '0'); INSERT INTO `district` VALUES ('6622', '', '4', '6620', '0'); INSERT INTO `district` VALUES ('6623', '', '4', '6620', '0'); INSERT INTO `district` VALUES ('6624', '', '4', '6620', '0'); INSERT INTO `district` VALUES ('6625', '', '4', '6620', '0'); INSERT INTO `district` VALUES ('6626', '', '4', '6620', '0'); INSERT INTO `district` VALUES ('6627', '', '4', '6620', '0'); INSERT INTO `district` VALUES ('6628', '密歇根', '3', '6442', '0'); INSERT INTO `district` VALUES ('6629', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6630', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6631', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6632', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6633', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6634', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6635', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6636', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6637', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6638', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6639', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6640', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6641', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6642', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6643', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6644', '', '4', '6628', '0'); INSERT INTO `district` VALUES ('6645', '缅因', '3', '6442', '0'); INSERT INTO `district` VALUES ('6646', '', '4', '6645', '0'); INSERT INTO `district` VALUES ('6647', '', '4', '6645', '0'); INSERT INTO `district` VALUES ('6648', '', '4', '6645', '0'); INSERT INTO `district` VALUES ('6649', '明尼苏达', '3', '6442', '0'); INSERT INTO `district` VALUES ('6650', '', '4', '6649', '0'); INSERT INTO `district` VALUES ('6651', '', '4', '6649', '0'); INSERT INTO `district` VALUES ('6652', '', '4', '6649', '0'); INSERT INTO `district` VALUES ('6653', '南达科他', '3', '6442', '0'); INSERT INTO `district` VALUES ('6654', '', '4', '6653', '0'); INSERT INTO `district` VALUES ('6655', '', '4', '6653', '0'); INSERT INTO `district` VALUES ('6656', '', '4', '6653', '0'); INSERT INTO `district` VALUES ('6657', '南卡罗来纳', '3', '6442', '0'); INSERT INTO `district` VALUES ('6658', '', '4', '6657', '0'); INSERT INTO `district` VALUES ('6659', '', '4', '6657', '0'); INSERT INTO `district` VALUES ('6660', '', '4', '6657', '0'); INSERT INTO `district` VALUES ('6661', '内布拉斯加', '3', '6442', '0'); INSERT INTO `district` VALUES ('6662', '', '4', '6661', '0'); INSERT INTO `district` VALUES ('6663', '', '4', '6661', '0'); INSERT INTO `district` VALUES ('6664', '', '4', '6661', '0'); INSERT INTO `district` VALUES ('6665', '内华达', '3', '6442', '0'); INSERT INTO `district` VALUES ('6666', '', '4', '6665', '0'); INSERT INTO `district` VALUES ('6667', '', '4', '6665', '0'); INSERT INTO `district` VALUES ('6668', '', '4', '6665', '0'); INSERT INTO `district` VALUES ('6669', '', '4', '6665', '0'); INSERT INTO `district` VALUES ('6670', '', '4', '6665', '0'); INSERT INTO `district` VALUES ('6671', '', '4', '6665', '0'); INSERT INTO `district` VALUES ('6672', '', '4', '6665', '0'); INSERT INTO `district` VALUES ('6673', '', '4', '6665', '0'); INSERT INTO `district` VALUES ('6674', '纽约', '3', '6442', '0'); INSERT INTO `district` VALUES ('6675', '', '4', '6674', '0'); INSERT INTO `district` VALUES ('6676', '', '4', '6674', '0'); INSERT INTO `district` VALUES ('6677', '', '4', '6674', '0'); INSERT INTO `district` VALUES ('6678', '特拉华', '3', '6442', '0'); INSERT INTO `district` VALUES ('6679', '', '4', '6678', '0'); INSERT INTO `district` VALUES ('6680', '', '4', '6678', '0'); INSERT INTO `district` VALUES ('6681', '', '4', '6678', '0'); INSERT INTO `district` VALUES ('6682', '田纳西', '3', '6442', '0'); INSERT INTO `district` VALUES ('6683', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6684', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6685', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6686', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6687', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6688', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6689', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6690', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6691', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6692', '', '4', '6682', '0'); INSERT INTO `district` VALUES ('6693', '威斯康星', '3', '6442', '0'); INSERT INTO `district` VALUES ('6694', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6695', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6696', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6697', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6698', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6699', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6700', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6701', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6702', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6703', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6704', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6705', '', '4', '6693', '0'); INSERT INTO `district` VALUES ('6706', '维吉尼亚', '3', '6442', '0'); INSERT INTO `district` VALUES ('6707', '', '4', '6706', '0'); INSERT INTO `district` VALUES ('6708', '', '4', '6706', '0'); INSERT INTO `district` VALUES ('6709', '', '4', '6706', '0'); INSERT INTO `district` VALUES ('6710', '西佛吉尼亚', '3', '6442', '0'); INSERT INTO `district` VALUES ('6711', '', '4', '6710', '0'); INSERT INTO `district` VALUES ('6712', '', '4', '6710', '0'); INSERT INTO `district` VALUES ('6713', '', '4', '6710', '0'); INSERT INTO `district` VALUES ('6714', '夏威夷', '3', '6442', '0'); INSERT INTO `district` VALUES ('6715', '', '4', '6714', '0'); INSERT INTO `district` VALUES ('6716', '', '4', '6714', '0'); INSERT INTO `district` VALUES ('6717', '', '4', '6714', '0'); INSERT INTO `district` VALUES ('6718', '新罕布什尔', '3', '6442', '0'); INSERT INTO `district` VALUES ('6719', '', '4', '6718', '0'); INSERT INTO `district` VALUES ('6720', '', '4', '6718', '0'); INSERT INTO `district` VALUES ('6721', '', '4', '6718', '0'); INSERT INTO `district` VALUES ('6722', '新墨西哥', '3', '6442', '0'); INSERT INTO `district` VALUES ('6723', '', '4', '6722', '0'); INSERT INTO `district` VALUES ('6724', '', '4', '6722', '0'); INSERT INTO `district` VALUES ('6725', '', '4', '6722', '0'); INSERT INTO `district` VALUES ('6726', '', '4', '6722', '0'); INSERT INTO `district` VALUES ('6727', '新泽西', '3', '6442', '0'); INSERT INTO `district` VALUES ('6728', '', '4', '6727', '0'); INSERT INTO `district` VALUES ('6729', '', '4', '6727', '0'); INSERT INTO `district` VALUES ('6730', '', '4', '6727', '0'); INSERT INTO `district` VALUES ('6731', '亚利桑那', '3', '6442', '0'); INSERT INTO `district` VALUES ('6732', '', '4', '6731', '0'); INSERT INTO `district` VALUES ('6733', '', '4', '6731', '0'); INSERT INTO `district` VALUES ('6734', '', '4', '6731', '0'); INSERT INTO `district` VALUES ('6735', '', '4', '6731', '0'); INSERT INTO `district` VALUES ('6736', '', '4', '6731', '0'); INSERT INTO `district` VALUES ('6737', '', '4', '6731', '0'); INSERT INTO `district` VALUES ('6738', '', '4', '6731', '0'); INSERT INTO `district` VALUES ('6739', '伊利诺斯', '3', '6442', '0'); INSERT INTO `district` VALUES ('6740', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6741', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6742', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6743', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6744', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6745', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6746', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6747', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6748', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6749', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6750', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6751', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6752', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6753', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6754', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6755', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6756', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6757', '', '4', '6739', '0'); INSERT INTO `district` VALUES ('6758', '印第安那', '3', '6442', '0'); INSERT INTO `district` VALUES ('6759', '', '4', '6758', '0'); INSERT INTO `district` VALUES ('6760', '', '4', '6758', '0'); INSERT INTO `district` VALUES ('6761', '', '4', '6758', '0'); INSERT INTO `district` VALUES ('6762', '犹他', '3', '6442', '0'); INSERT INTO `district` VALUES ('6763', '', '4', '6762', '0'); INSERT INTO `district` VALUES ('6764', '', '4', '6762', '0'); INSERT INTO `district` VALUES ('6765', '', '4', '6762', '0'); INSERT INTO `district` VALUES ('6766', '', '4', '6762', '0'); INSERT INTO `district` VALUES ('6767', '', '4', '6762', '0'); INSERT INTO `district` VALUES ('6768', '', '4', '6762', '0'); INSERT INTO `district` VALUES ('6769', '', '4', '6762', '0'); INSERT INTO `district` VALUES ('6770', '', '4', '6762', '0'); INSERT INTO `district` VALUES ('6771', '佐治亚', '3', '6442', '0'); INSERT INTO `district` VALUES ('6772', '', '4', '6771', '0'); INSERT INTO `district` VALUES ('6773', '', '4', '6771', '0'); INSERT INTO `district` VALUES ('6774', '', '4', '6771', '0'); INSERT INTO `district` VALUES ('6775', '', '4', '6771', '0'); INSERT INTO `district` VALUES ('6776', '', '4', '6771', '0'); INSERT INTO `district` VALUES ('6777', '美属萨摩亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6778', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6779', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6780', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6781', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6782', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6783', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6784', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6785', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6786', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6787', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6788', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6789', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6790', '', '3', '6777', '0'); INSERT INTO `district` VALUES ('6791', '蒙古', '2', '35', '0'); INSERT INTO `district` VALUES ('6792', '孟加拉', '2', '35', '0'); INSERT INTO `district` VALUES ('6793', '秘鲁', '2', '35', '0'); INSERT INTO `district` VALUES ('6794', '缅甸', '2', '35', '0'); INSERT INTO `district` VALUES ('6795', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6796', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6797', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6798', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6799', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6800', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6801', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6802', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6803', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6804', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6805', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6806', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6807', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6808', '', '3', '6794', '0'); INSERT INTO `district` VALUES ('6809', '摩洛哥', '2', '35', '0'); INSERT INTO `district` VALUES ('6810', '莫桑比克', '2', '35', '0'); INSERT INTO `district` VALUES ('6811', '墨西哥', '2', '35', '0'); INSERT INTO `district` VALUES ('6812', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6813', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6814', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6815', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6816', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6817', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6818', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6819', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6820', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6821', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6822', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6823', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6824', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6825', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6826', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6827', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6828', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6829', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6830', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6831', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6832', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6833', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6834', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6835', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6836', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6837', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6838', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6839', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6840', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6841', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6842', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6843', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6844', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6845', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6846', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6847', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6848', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6849', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6850', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6851', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6852', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6853', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6854', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6855', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6856', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6857', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6858', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6859', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6860', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6861', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6862', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6863', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6864', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6865', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6866', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6867', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6868', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6869', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6870', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6871', '', '3', '6811', '0'); INSERT INTO `district` VALUES ('6872', '纳米比亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6873', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6874', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6875', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6876', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6877', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6878', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6879', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6880', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6881', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6882', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6883', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6884', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6885', '', '3', '6872', '0'); INSERT INTO `district` VALUES ('6886', '南非', '2', '35', '0'); INSERT INTO `district` VALUES ('6887', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6888', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6889', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6890', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6891', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6892', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6893', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6894', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6895', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6896', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6897', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6898', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6899', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6900', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6901', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6902', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6903', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6904', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6905', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6906', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6907', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6908', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6909', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6910', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6911', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6912', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6913', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6914', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6915', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6916', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6917', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6918', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6919', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6920', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6921', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6922', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6923', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6924', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6925', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6926', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6927', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6928', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6929', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6930', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6931', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6932', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6933', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6934', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6935', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6936', '', '3', '6886', '0'); INSERT INTO `district` VALUES ('6937', '南乔治亚和南桑德威奇群岛', '2', '35', '0'); INSERT INTO `district` VALUES ('6938', '尼泊尔', '2', '35', '0'); INSERT INTO `district` VALUES ('6939', '尼加拉瓜', '2', '35', '0'); INSERT INTO `district` VALUES ('6940', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6941', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6942', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6943', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6944', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6945', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6946', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6947', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6948', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6949', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6950', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6951', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6952', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6953', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6954', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6955', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6956', '', '3', '6939', '0'); INSERT INTO `district` VALUES ('6957', '尼日尔', '2', '35', '0'); INSERT INTO `district` VALUES ('6958', '', '3', '6957', '0'); INSERT INTO `district` VALUES ('6959', '', '3', '6957', '0'); INSERT INTO `district` VALUES ('6960', '', '3', '6957', '0'); INSERT INTO `district` VALUES ('6961', '', '3', '6957', '0'); INSERT INTO `district` VALUES ('6962', '', '3', '6957', '0'); INSERT INTO `district` VALUES ('6963', '', '3', '6957', '0'); INSERT INTO `district` VALUES ('6964', '', '3', '6957', '0'); INSERT INTO `district` VALUES ('6965', '', '3', '6957', '0'); INSERT INTO `district` VALUES ('6966', '尼日利亚', '2', '35', '0'); INSERT INTO `district` VALUES ('6967', '', '3', '6966', '0'); INSERT INTO `district` VALUES ('6968', '', '3', '6966', '0'); INSERT INTO `district` VALUES ('6969', '', '3', '6966', '0'); INSERT INTO `district` VALUES ('6970', '', '3', '6966', '0'); INSERT INTO `district` VALUES ('6971', '', '3', '6966', '0'); INSERT INTO `district` VALUES ('6972', '挪威', '2', '35', '0'); INSERT INTO `district` VALUES ('6973', '帕劳群岛', '2', '35', '0'); INSERT INTO `district` VALUES ('6974', '葡萄牙', '2', '35', '0'); INSERT INTO `district` VALUES ('6975', '日本', '2', '35', '0'); INSERT INTO `district` VALUES ('6976', '瑞典', '2', '35', '0'); INSERT INTO `district` VALUES ('6977', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6978', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6979', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6980', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6981', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6982', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6983', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6984', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6985', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6986', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6987', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6988', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6989', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6990', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6991', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6992', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6993', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6994', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6995', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6996', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6997', '', '3', '6976', '0'); INSERT INTO `district` VALUES ('6998', '瑞士', '2', '35', '0'); INSERT INTO `district` VALUES ('6999', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7000', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7001', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7002', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7003', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7004', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7005', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7006', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7007', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7008', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7009', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7010', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7011', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7012', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7013', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7014', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7015', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7016', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7017', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7018', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7019', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7020', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7021', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7022', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7023', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7024', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7025', '', '3', '6998', '0'); INSERT INTO `district` VALUES ('7026', '萨尔瓦多', '2', '35', '0'); INSERT INTO `district` VALUES ('7027', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7028', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7029', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7030', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7031', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7032', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7033', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7034', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7035', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7036', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7037', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7038', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7039', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7040', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7041', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7042', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7043', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7044', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7045', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7046', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7047', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7048', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7049', '', '3', '7026', '0'); INSERT INTO `district` VALUES ('7050', '塞尔维亚,黑山', '2', '35', '0'); INSERT INTO `district` VALUES ('7051', '塞拉利昂', '2', '35', '0'); INSERT INTO `district` VALUES ('7052', '', '3', '7051', '0'); INSERT INTO `district` VALUES ('7053', '', '3', '7051', '0'); INSERT INTO `district` VALUES ('7054', '', '3', '7051', '0'); INSERT INTO `district` VALUES ('7055', '', '3', '7051', '0'); INSERT INTO `district` VALUES ('7056', '塞内加尔', '2', '35', '0'); INSERT INTO `district` VALUES ('7057', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7058', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7059', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7060', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7061', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7062', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7063', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7064', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7065', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7066', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7067', '', '3', '7056', '0'); INSERT INTO `district` VALUES ('7068', '塞浦路斯', '2', '35', '0'); INSERT INTO `district` VALUES ('7069', '', '3', '7068', '0'); INSERT INTO `district` VALUES ('7070', '', '3', '7068', '0'); INSERT INTO `district` VALUES ('7071', '', '3', '7068', '0'); INSERT INTO `district` VALUES ('7072', '', '3', '7068', '0'); INSERT INTO `district` VALUES ('7073', '', '3', '7068', '0'); INSERT INTO `district` VALUES ('7074', '', '3', '7068', '0'); INSERT INTO `district` VALUES ('7075', '沙特阿拉伯', '2', '35', '0'); INSERT INTO `district` VALUES ('7076', '圣多美和普林西比', '2', '35', '0'); INSERT INTO `district` VALUES ('7077', '圣基茨和尼维斯', '2', '35', '0'); INSERT INTO `district` VALUES ('7078', '圣马力诺', '2', '35', '0'); INSERT INTO `district` VALUES ('7079', '圣文森特和格林纳丁斯', '2', '35', '0'); INSERT INTO `district` VALUES ('7080', '斯里兰卡', '2', '35', '0'); INSERT INTO `district` VALUES ('7081', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7082', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7083', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7084', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7085', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7086', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7087', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7088', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7089', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7090', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7091', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7092', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7093', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7094', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7095', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7096', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7097', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7098', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7099', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7100', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7101', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7102', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7103', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7104', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7105', '', '3', '7080', '0'); INSERT INTO `district` VALUES ('7106', '斯洛伐克', '2', '35', '0'); INSERT INTO `district` VALUES ('7107', '', '3', '7106', '0'); INSERT INTO `district` VALUES ('7108', '', '3', '7106', '0'); INSERT INTO `district` VALUES ('7109', '', '3', '7106', '0'); INSERT INTO `district` VALUES ('7110', '', '3', '7106', '0'); INSERT INTO `district` VALUES ('7111', '', '3', '7106', '0'); INSERT INTO `district` VALUES ('7112', '', '3', '7106', '0'); INSERT INTO `district` VALUES ('7113', '', '3', '7106', '0'); INSERT INTO `district` VALUES ('7114', '', '3', '7106', '0'); INSERT INTO `district` VALUES ('7115', '斯洛文尼亚', '2', '35', '0'); INSERT INTO `district` VALUES ('7116', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7117', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7118', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7119', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7120', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7121', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7122', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7123', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7124', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7125', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7126', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7127', '', '3', '7115', '0'); INSERT INTO `district` VALUES ('7128', '斯威士兰', '2', '35', '0'); INSERT INTO `district` VALUES ('7129', '苏丹', '2', '35', '0'); INSERT INTO `district` VALUES ('7130', '', '3', '7129', '0'); INSERT INTO `district` VALUES ('7131', '', '3', '7129', '0'); INSERT INTO `district` VALUES ('7132', '', '3', '7129', '0'); INSERT INTO `district` VALUES ('7133', '', '3', '7129', '0'); INSERT INTO `district` VALUES ('7134', '', '3', '7129', '0'); INSERT INTO `district` VALUES ('7135', '', '3', '7129', '0'); INSERT INTO `district` VALUES ('7136', '', '3', '7129', '0'); INSERT INTO `district` VALUES ('7137', '', '3', '7129', '0'); INSERT INTO `district` VALUES ('7138', '', '3', '7129', '0'); INSERT INTO `district` VALUES ('7139', '苏里南', '2', '35', '0'); INSERT INTO `district` VALUES ('7140', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7141', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7142', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7143', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7144', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7145', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7146', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7147', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7148', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7149', '', '3', '7139', '0'); INSERT INTO `district` VALUES ('7150', '所罗门群岛', '2', '35', '0'); INSERT INTO `district` VALUES ('7151', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7152', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7153', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7154', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7155', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7156', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7157', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7158', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7159', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7160', '', '3', '7150', '0'); INSERT INTO `district` VALUES ('7161', '塔吉克斯坦', '2', '35', '0'); INSERT INTO `district` VALUES ('7162', '泰国', '2', '35', '0'); INSERT INTO `district` VALUES ('7163', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7164', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7165', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7166', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7167', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7168', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7169', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7170', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7171', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7172', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7173', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7174', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7175', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7176', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7177', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7178', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7179', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7180', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7181', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7182', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7183', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7184', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7185', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7186', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7187', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7188', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7189', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7190', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7191', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7192', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7193', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7194', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7195', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7196', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7197', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7198', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7199', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7200', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7201', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7202', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7203', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7204', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7205', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7206', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7207', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7208', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7209', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7210', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7211', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7212', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7213', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7214', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7215', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7216', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7217', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7218', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7219', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7220', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7221', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7222', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7223', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7224', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7225', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7226', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7227', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7228', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7229', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7230', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7231', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7232', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7233', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7234', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7235', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7236', '', '3', '7162', '0'); INSERT INTO `district` VALUES ('7237', '坦桑尼亚', '2', '35', '0'); INSERT INTO `district` VALUES ('7238', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7239', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7240', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7241', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7242', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7243', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7244', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7245', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7246', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7247', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7248', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7249', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7250', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7251', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7252', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7253', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7254', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7255', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7256', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7257', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7258', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7259', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7260', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7261', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7262', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7263', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7264', '', '3', '7237', '0'); INSERT INTO `district` VALUES ('7265', '汤加', '2', '35', '0'); INSERT INTO `district` VALUES ('7266', '', '3', '7265', '0'); INSERT INTO `district` VALUES ('7267', '', '3', '7265', '0'); INSERT INTO `district` VALUES ('7268', '', '3', '7265', '0'); INSERT INTO `district` VALUES ('7269', '', '3', '7265', '0'); INSERT INTO `district` VALUES ('7270', '', '3', '7265', '0'); INSERT INTO `district` VALUES ('7271', '特里斯坦达昆哈', '2', '35', '0'); INSERT INTO `district` VALUES ('7272', '突尼斯', '2', '35', '0'); INSERT INTO `district` VALUES ('7273', '土耳其', '2', '35', '0'); INSERT INTO `district` VALUES ('7274', '土库曼斯坦', '2', '35', '0'); INSERT INTO `district` VALUES ('7275', '', '3', '7274', '0'); INSERT INTO `district` VALUES ('7276', '', '3', '7274', '0'); INSERT INTO `district` VALUES ('7277', '', '3', '7274', '0'); INSERT INTO `district` VALUES ('7278', '', '3', '7274', '0'); INSERT INTO `district` VALUES ('7279', '', '3', '7274', '0'); INSERT INTO `district` VALUES ('7280', '', '3', '7274', '0'); INSERT INTO `district` VALUES ('7281', '', '3', '7274', '0'); INSERT INTO `district` VALUES ('7282', '瓦利斯和福图纳', '2', '35', '0'); INSERT INTO `district` VALUES ('7283', '瓦努阿图', '2', '35', '0'); INSERT INTO `district` VALUES ('7284', '', '3', '7283', '0'); INSERT INTO `district` VALUES ('7285', '', '3', '7283', '0'); INSERT INTO `district` VALUES ('7286', '', '3', '7283', '0'); INSERT INTO `district` VALUES ('7287', '', '3', '7283', '0'); INSERT INTO `district` VALUES ('7288', '', '3', '7283', '0'); INSERT INTO `district` VALUES ('7289', '', '3', '7283', '0'); INSERT INTO `district` VALUES ('7290', '危地马拉', '2', '35', '0'); INSERT INTO `district` VALUES ('7291', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7292', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7293', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7294', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7295', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7296', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7297', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7298', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7299', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7300', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7301', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7302', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7303', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7304', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7305', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7306', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7307', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7308', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7309', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7310', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7311', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7312', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7313', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7314', '', '3', '7290', '0'); INSERT INTO `district` VALUES ('7315', '维尔京群岛,英属', '2', '35', '0'); INSERT INTO `district` VALUES ('7316', '委内瑞拉', '2', '35', '0'); INSERT INTO `district` VALUES ('7317', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7318', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7319', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7320', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7321', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7322', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7323', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7324', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7325', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7326', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7327', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7328', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7329', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7330', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7331', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7332', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7333', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7334', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7335', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7336', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7337', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7338', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7339', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7340', '', '3', '7316', '0'); INSERT INTO `district` VALUES ('7341', '乌干达', '2', '35', '0'); INSERT INTO `district` VALUES ('7342', '乌克兰', '2', '35', '0'); INSERT INTO `district` VALUES ('7343', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7344', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7345', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7346', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7347', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7348', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7349', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7350', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7351', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7352', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7353', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7354', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7355', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7356', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7357', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7358', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7359', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7360', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7361', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7362', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7363', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7364', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7365', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7366', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7367', '', '3', '7342', '0'); INSERT INTO `district` VALUES ('7368', '乌拉圭', '2', '35', '0'); INSERT INTO `district` VALUES ('7369', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7370', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7371', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7372', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7373', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7374', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7375', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7376', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7377', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7378', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7379', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7380', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7381', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7382', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7383', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7384', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7385', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7386', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7387', '', '3', '7368', '0'); INSERT INTO `district` VALUES ('7388', '乌兹别克斯坦', '2', '35', '0'); INSERT INTO `district` VALUES ('7389', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7390', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7391', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7392', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7393', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7394', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7395', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7396', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7397', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7398', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7399', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7400', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7401', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7402', '', '3', '7388', '0'); INSERT INTO `district` VALUES ('7403', '西班牙', '2', '35', '0'); INSERT INTO `district` VALUES ('7404', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7405', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7406', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7407', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7408', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7409', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7410', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7411', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7412', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7413', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7414', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7415', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7416', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7417', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7418', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7419', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7420', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7421', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7422', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7423', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7424', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7425', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7426', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7427', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7428', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7429', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7430', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7431', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7432', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7433', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7434', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7435', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7436', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7437', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7438', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7439', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7440', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7441', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7442', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7443', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7444', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7445', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7446', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7447', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7448', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7449', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7450', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7451', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7452', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7453', '', '3', '7403', '0'); INSERT INTO `district` VALUES ('7454', '希腊', '2', '35', '0'); INSERT INTO `district` VALUES ('7455', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7456', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7457', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7458', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7459', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7460', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7461', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7462', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7463', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7464', '', '3', '7454', '0'); INSERT INTO `district` VALUES ('7465', '新喀里多尼亚', '2', '35', '0'); INSERT INTO `district` VALUES ('7466', '新西兰', '2', '35', '0'); INSERT INTO `district` VALUES ('7467', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7468', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7469', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7470', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7471', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7472', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7473', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7474', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7475', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7476', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7477', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7478', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7479', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7480', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7481', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7482', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7483', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7484', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7485', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7486', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7487', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7488', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7489', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7490', '', '3', '7466', '0'); INSERT INTO `district` VALUES ('7491', '匈牙利', '2', '35', '0'); INSERT INTO `district` VALUES ('7492', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7493', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7494', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7495', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7496', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7497', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7498', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7499', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7500', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7501', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7502', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7503', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7504', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7505', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7506', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7507', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7508', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7509', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7510', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7511', '', '3', '7491', '0'); INSERT INTO `district` VALUES ('7512', '叙利亚', '2', '35', '0'); INSERT INTO `district` VALUES ('7513', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7514', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7515', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7516', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7517', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7518', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7519', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7520', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7521', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7522', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7523', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7524', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7525', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7526', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7527', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7528', '', '3', '7512', '0'); INSERT INTO `district` VALUES ('7529', '牙买加', '2', '35', '0'); INSERT INTO `district` VALUES ('7530', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7531', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7532', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7533', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7534', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7535', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7536', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7537', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7538', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7539', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7540', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7541', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7542', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7543', '', '3', '7529', '0'); INSERT INTO `district` VALUES ('7544', '亚美尼亚', '2', '35', '0'); INSERT INTO `district` VALUES ('7545', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7546', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7547', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7548', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7549', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7550', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7551', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7552', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7553', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7554', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7555', '', '3', '7544', '0'); INSERT INTO `district` VALUES ('7556', '也门', '2', '35', '0'); INSERT INTO `district` VALUES ('7557', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7558', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7559', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7560', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7561', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7562', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7563', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7564', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7565', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7566', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7567', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7568', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7569', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7570', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7571', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7572', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7573', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7574', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7575', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7576', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7577', '', '3', '7556', '0'); INSERT INTO `district` VALUES ('7578', '伊朗', '2', '35', '0'); INSERT INTO `district` VALUES ('7579', '以色列', '2', '35', '0'); INSERT INTO `district` VALUES ('7580', '', '3', '7579', '0'); INSERT INTO `district` VALUES ('7581', '', '3', '7579', '0'); INSERT INTO `district` VALUES ('7582', '', '3', '7579', '0'); INSERT INTO `district` VALUES ('7583', '', '3', '7579', '0'); INSERT INTO `district` VALUES ('7584', '', '3', '7579', '0'); INSERT INTO `district` VALUES ('7585', '', '3', '7579', '0'); INSERT INTO `district` VALUES ('7586', '', '3', '7579', '0'); INSERT INTO `district` VALUES ('7587', '', '3', '7579', '0'); INSERT INTO `district` VALUES ('7588', '意大利', '2', '35', '0'); INSERT INTO `district` VALUES ('7589', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7590', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7591', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7592', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7593', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7594', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7595', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7596', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7597', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7598', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7599', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7600', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7601', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7602', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7603', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7604', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7605', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7606', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7607', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7608', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7609', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7610', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7611', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7612', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7613', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7614', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7615', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7616', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7617', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7618', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7619', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7620', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7621', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7622', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7623', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7624', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7625', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7626', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7627', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7628', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7629', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7630', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7631', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7632', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7633', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7634', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7635', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7636', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7637', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7638', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7639', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7640', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7641', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7642', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7643', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7644', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7645', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7646', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7647', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7648', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7649', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7650', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7651', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7652', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7653', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7654', '', '3', '7588', '0'); INSERT INTO `district` VALUES ('7655', '印度', '2', '35', '0'); INSERT INTO `district` VALUES ('7656', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7657', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7658', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7659', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7660', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7661', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7662', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7663', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7664', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7665', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7666', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7667', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7668', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7669', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7670', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7671', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7672', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7673', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7674', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7675', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7676', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7677', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7678', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7679', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7680', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7681', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7682', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7683', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7684', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7685', '', '3', '7655', '0'); INSERT INTO `district` VALUES ('7686', '印度尼西亚', '2', '35', '0'); INSERT INTO `district` VALUES ('7687', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7688', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7689', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7690', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7691', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7692', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7693', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7694', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7695', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7696', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7697', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7698', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7699', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7700', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7701', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7702', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7703', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7704', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7705', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7706', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7707', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7708', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7709', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7710', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7711', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7712', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7713', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7714', '', '3', '7686', '0'); INSERT INTO `district` VALUES ('7715', '英国', '2', '35', '0'); INSERT INTO `district` VALUES ('7716', '北爱尔兰', '3', '7715', '0'); INSERT INTO `district` VALUES ('7717', '', '4', '7716', '0'); INSERT INTO `district` VALUES ('7718', '', '4', '7716', '0'); INSERT INTO `district` VALUES ('7719', '', '4', '7716', '0'); INSERT INTO `district` VALUES ('7720', '', '4', '7716', '0'); INSERT INTO `district` VALUES ('7721', '苏格兰', '3', '7715', '0'); INSERT INTO `district` VALUES ('7722', '', '4', '7721', '0'); INSERT INTO `district` VALUES ('7723', '', '4', '7721', '0'); INSERT INTO `district` VALUES ('7724', '', '4', '7721', '0'); INSERT INTO `district` VALUES ('7725', '', '4', '7721', '0'); INSERT INTO `district` VALUES ('7726', '', '4', '7721', '0'); INSERT INTO `district` VALUES ('7727', '', '4', '7721', '0'); INSERT INTO `district` VALUES ('7728', '威尔士', '3', '7715', '0'); INSERT INTO `district` VALUES ('7729', '', '4', '7728', '0'); INSERT INTO `district` VALUES ('7730', '', '4', '7728', '0'); INSERT INTO `district` VALUES ('7731', '', '4', '7728', '0'); INSERT INTO `district` VALUES ('7732', '', '4', '7728', '0'); INSERT INTO `district` VALUES ('7733', '英格兰', '3', '7715', '0'); INSERT INTO `district` VALUES ('7734', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7735', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7736', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7737', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7738', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7739', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7740', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7741', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7742', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7743', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7744', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7745', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7746', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7747', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7748', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7749', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7750', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7751', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7752', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7753', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7754', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7755', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7756', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7757', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7758', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7759', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7760', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7761', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7762', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7763', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7764', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7765', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7766', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7767', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7768', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7769', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7770', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7771', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7772', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7773', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7774', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7775', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7776', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7777', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7778', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7779', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7780', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7781', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7782', '', '4', '7733', '0'); INSERT INTO `district` VALUES ('7783', '约旦', '2', '35', '0'); INSERT INTO `district` VALUES ('7784', '越南', '2', '35', '0'); INSERT INTO `district` VALUES ('7785', '', '3', '7784', '0'); INSERT INTO `district` VALUES ('7786', '', '3', '7784', '0'); INSERT INTO `district` VALUES ('7787', '', '3', '7784', '0'); INSERT INTO `district` VALUES ('7788', '赞比亚', '2', '35', '0'); INSERT INTO `district` VALUES ('7789', '', '3', '7788', '0'); INSERT INTO `district` VALUES ('7790', '', '3', '7788', '0'); INSERT INTO `district` VALUES ('7791', '', '3', '7788', '0'); INSERT INTO `district` VALUES ('7792', '', '3', '7788', '0'); INSERT INTO `district` VALUES ('7793', '', '3', '7788', '0'); INSERT INTO `district` VALUES ('7794', '', '3', '7788', '0'); INSERT INTO `district` VALUES ('7795', '', '3', '7788', '0'); INSERT INTO `district` VALUES ('7796', '', '3', '7788', '0'); INSERT INTO `district` VALUES ('7797', '', '3', '7788', '0'); INSERT INTO `district` VALUES ('7798', '乍得', '2', '35', '0'); INSERT INTO `district` VALUES ('7799', '智利', '2', '35', '0'); INSERT INTO `district` VALUES ('7800', '中非共和国', '2', '35', '0'); INSERT INTO `district` VALUES ('7801', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7802', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7803', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7804', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7805', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7806', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7807', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7808', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7809', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7810', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7811', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7812', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7813', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7814', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7815', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7816', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7817', '', '3', '7800', '0'); INSERT INTO `district` VALUES ('7818', '', '3', '7800', '0'); -- ---------------------------- -- Table structure for electric -- ---------------------------- DROP TABLE IF EXISTS `electric`; CREATE TABLE `electric` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL COMMENT '电器标识名', `device_id` int(11) NOT NULL DEFAULT '0' COMMENT 'device表id', `openid` varchar(64) DEFAULT NULL COMMENT '微信openid', `ele_id` int(11) NOT NULL DEFAULT '0' COMMENT '电器类型id,如:空调、电视', `ele_name` varchar(255) NOT NULL COMMENT '电器类型', `ele_brand_id` varchar(18) NOT NULL DEFAULT '0' COMMENT '品牌标示,如长虹(Changhong)', `ele_brand_name` varchar(255) NOT NULL COMMENT '品牌名称', `ele_count` int(11) NOT NULL DEFAULT '0' COMMENT '设备数据点', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `ele_name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='被控设备列表'; -- ---------------------------- -- Records of electric -- ---------------------------- -- ---------------------------- -- Table structure for electric_brand -- ---------------------------- DROP TABLE IF EXISTS `electric_brand`; CREATE TABLE `electric_brand` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `en` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `data_count` varchar(1500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '码库数据数量', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of electric_brand -- ---------------------------- -- ---------------------------- -- Table structure for electric_key -- ---------------------------- DROP TABLE IF EXISTS `electric_key`; CREATE TABLE `electric_key` ( `kv` mediumint(8) unsigned NOT NULL, `name` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`kv`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of electric_key -- ---------------------------- -- ---------------------------- -- Table structure for electric_type -- ---------------------------- DROP TABLE IF EXISTS `electric_type`; CREATE TABLE `electric_type` ( `id` int(10) unsigned NOT NULL, `ks` smallint(5) DEFAULT NULL, `en` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `name` varchar(18) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of electric_type -- ---------------------------- -- ---------------------------- -- Table structure for menu -- ---------------------------- DROP TABLE IF EXISTS `menu`; CREATE TABLE `menu` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL, `url` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `icon` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pid` int(10) unsigned NOT NULL DEFAULT '0', `sort` tinyint(3) unsigned DEFAULT '0', `permission_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `is_show` tinyint(1) unsigned DEFAULT '1' COMMENT '是否显示', PRIMARY KEY (`id`), UNIQUE KEY `menu_per_name` (`permission_name`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of menu -- ---------------------------- INSERT INTO `menu` VALUES ('1', '产品', 'admin/product/index', 'fa fa-navicon', '0', '0', 'admin.goods.manage', '0'); INSERT INTO `menu` VALUES ('4', '系统', '#', 'fa fa-cutlery', '0', '20', 'admin.system.manage', '1'); INSERT INTO `menu` VALUES ('5', '产品管理', 'admin/product/index', null, '1', '0', 'admin.product.index', '1'); INSERT INTO `menu` VALUES ('6', '菜单', '#', 'fa fa-navicon', '0', '0', 'admin.menu.manage', '1'); INSERT INTO `menu` VALUES ('7', '菜单管理', 'admin/menu/index', null, '6', '0', 'admin.menu.index', '1'); INSERT INTO `menu` VALUES ('8', '权限管理', 'admin/permission/index', 'fa fa-cutlery', '4', '0', 'admin.permission.index', '1'); INSERT INTO `menu` VALUES ('9', '角色管理', 'admin/role/index', 'fa fa-cutlery', '4', '1', 'admin.role.index', '1'); INSERT INTO `menu` VALUES ('11', '酒店管理', 'admin/user/index', '', '16', '1', 'admin.user.index', '1'); INSERT INTO `menu` VALUES ('12', '会员', null, 'fa fa-navicon', '0', null, 'admin.member.manage', '0'); INSERT INTO `menu` VALUES ('13', '会员管理', 'admin/member/index', 'fa fa-navicon', '12', null, 'admin.member.index', '1'); INSERT INTO `menu` VALUES ('14', '订单', null, 'fa fa-navicon', '0', null, 'admin.order.manage', '0'); INSERT INTO `menu` VALUES ('15', '订单管理', 'admin/order/index', 'fa fa-navicon', '14', null, 'admin.order.index', '1'); INSERT INTO `menu` VALUES ('16', '酒店', '#', 'fa fa-navicon', '0', '0', 'admin.user.manage', '1'); INSERT INTO `menu` VALUES ('17', '房间管理', 'admin/room/index', '', '16', '0', 'admin.room.index', '1'); INSERT INTO `menu` VALUES ('18', '设备管理', 'admin/device/index', '', '19', '0', 'admin.device.index', '1'); INSERT INTO `menu` VALUES ('19', '设备', '#', 'fa fa-navicon', '0', '0', 'admin.device.manage', '1'); INSERT INTO `menu` VALUES ('20', '添加电器', 'admin/electric/add', '', '19', '0', 'admin.electric.add', '1'); INSERT INTO `menu` VALUES ('21', '能耗统计', 'admin/device/chart', '', '19', '0', 'admin.device.chart', '1'); INSERT INTO `menu` VALUES ('22', '冷热实况', 'admin/device/live', '', '19', '0', 'admin.device.live', '1'); -- ---------------------------- -- Table structure for migrations -- ---------------------------- DROP TABLE IF EXISTS `migrations`; CREATE TABLE `migrations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of migrations -- ---------------------------- INSERT INTO `migrations` VALUES ('1', '2014_10_12_000000_create_users_table', '1'); INSERT INTO `migrations` VALUES ('2', '2014_10_12_100000_create_password_resets_table', '1'); INSERT INTO `migrations` VALUES ('3', '2017_03_17_170738_entrust_setup_tables', '1'); -- ---------------------------- -- Table structure for password_resets -- ---------------------------- DROP TABLE IF EXISTS `password_resets`; CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`), KEY `password_resets_token_index` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of password_resets -- ---------------------------- -- ---------------------------- -- Table structure for permissions -- ---------------------------- DROP TABLE IF EXISTS `permissions`; CREATE TABLE `permissions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `pid` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `permissions_name_unique` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of permissions -- ---------------------------- INSERT INTO `permissions` VALUES ('1', 'admin.index.index', '后台主框架首页', 'create new blog posts', '2017-03-18 07:27:18', '2017-03-18 07:27:18', '0'); INSERT INTO `permissions` VALUES ('2', 'admin.index.dashboard', '后台首页展示页', 'edit existing users', '2017-03-18 07:27:18', '2017-03-18 07:27:18', '0'); INSERT INTO `permissions` VALUES ('6', 'admin.system.manage', '系统', null, '2017-03-20 15:41:54', '2017-03-20 15:41:54', '0'); INSERT INTO `permissions` VALUES ('7', 'admin.permission.manage', '权限', '权限控制', '2017-03-20 15:58:08', '2017-03-24 15:59:39', '6'); INSERT INTO `permissions` VALUES ('8', 'admin.permission.add', '添加权限', null, '2017-03-20 15:59:26', '2017-03-24 15:59:49', '7'); INSERT INTO `permissions` VALUES ('9', 'admin.permission.edit', '编辑权限', null, '2017-03-20 15:59:46', '2017-03-20 15:59:46', '7'); INSERT INTO `permissions` VALUES ('10', 'admin.menu.index', '菜单列表', null, '2017-03-22 08:26:15', '2017-03-24 16:06:20', '36'); INSERT INTO `permissions` VALUES ('11', 'admin.menu.add', '添加菜单', null, '2017-03-22 08:29:58', '2017-03-22 08:29:58', '10'); INSERT INTO `permissions` VALUES ('12', 'admin.menu.edit', '编辑菜单', null, '2017-03-22 08:32:08', '2017-03-22 08:32:08', '10'); INSERT INTO `permissions` VALUES ('19', 'admin.permission.index', '权限列表', null, '2017-03-22 12:42:08', '2017-03-22 12:42:08', '7'); INSERT INTO `permissions` VALUES ('20', 'admin.permission.del', '删除权限', null, '2017-03-22 12:42:33', '2017-03-22 12:42:33', '7'); INSERT INTO `permissions` VALUES ('21', 'admin.menu.del', '删除菜单', null, '2017-03-24 06:56:55', '2017-03-24 06:56:55', '10'); INSERT INTO `permissions` VALUES ('22', 'admin.role.manage', '角色管理', null, '2017-03-24 12:30:07', '2017-03-24 16:05:46', '6'); INSERT INTO `permissions` VALUES ('23', 'admin.role.index', '角色列表', null, '2017-03-24 12:30:24', '2017-03-24 12:30:24', '22'); INSERT INTO `permissions` VALUES ('24', 'admin.role.add', '添加角色', null, '2017-03-24 12:30:37', '2017-03-24 12:30:37', '22'); INSERT INTO `permissions` VALUES ('25', 'admin.role.edit', '编辑角色', null, '2017-03-24 12:30:54', '2017-03-24 12:30:54', '22'); INSERT INTO `permissions` VALUES ('26', 'admin.role.del', '删除角色', null, '2017-03-24 12:31:13', '2017-03-24 12:31:13', '22'); INSERT INTO `permissions` VALUES ('27', 'admin.role.show', '查看角色', null, '2017-03-24 12:31:26', '2017-03-24 12:31:26', '22'); INSERT INTO `permissions` VALUES ('28', 'admin.user.manage', '酒店管理', '', '2017-03-24 15:49:06', '2017-05-08 09:18:28', '0'); INSERT INTO `permissions` VALUES ('29', 'admin.user.index', '用户列表', null, '2017-03-24 15:49:25', '2017-03-24 15:54:27', '28'); INSERT INTO `permissions` VALUES ('30', 'admin.user.show', '查看用户', null, '2017-03-24 15:49:52', '2017-03-24 15:55:19', '28'); INSERT INTO `permissions` VALUES ('31', 'admin.user.add', '添加用户', null, '2017-03-24 15:50:04', '2017-03-24 15:54:40', '28'); INSERT INTO `permissions` VALUES ('32', 'admin.user.edit', '编辑用户', null, '2017-03-24 15:50:18', '2017-03-24 15:54:49', '28'); INSERT INTO `permissions` VALUES ('33', 'admin.user.del', '删除用户', null, '2017-03-24 15:50:35', '2017-03-24 15:54:56', '28'); INSERT INTO `permissions` VALUES ('34', 'admin.menu.get-sub-menu', '获取子菜单', null, '2017-03-24 15:57:51', '2017-03-24 15:57:51', '10'); INSERT INTO `permissions` VALUES ('35', 'admin.permission.get-sub-perm', '获取子权限', null, '2017-03-24 15:58:40', '2017-03-24 15:58:40', '7'); INSERT INTO `permissions` VALUES ('36', 'admin.menu.manage', '菜单', null, '2017-03-24 16:05:07', '2017-03-24 16:05:07', '0'); INSERT INTO `permissions` VALUES ('38', 'admin.member.manage', '会员', null, '2017-04-20 06:03:24', '2017-04-20 06:03:24', '0'); INSERT INTO `permissions` VALUES ('39', 'admin.member.index', '会员管理', null, '2017-04-20 06:03:38', '2017-04-20 06:03:38', '38'); INSERT INTO `permissions` VALUES ('40', 'admin.member.add', '添加会员', null, '2017-04-20 06:03:56', '2017-04-20 06:03:56', '38'); INSERT INTO `permissions` VALUES ('41', 'admin.member.edit', '编辑会员', null, '2017-04-20 06:04:14', '2017-04-20 06:04:14', '38'); INSERT INTO `permissions` VALUES ('42', 'admin.member.del', '删除会员', null, '2017-04-20 06:04:35', '2017-04-20 06:04:35', '38'); INSERT INTO `permissions` VALUES ('43', 'admin.order.manage', '订单', null, '2017-04-20 06:05:05', '2017-04-20 06:05:05', '0'); INSERT INTO `permissions` VALUES ('44', 'admin.order.index', '订单管理', null, '2017-04-20 06:05:21', '2017-04-20 06:05:21', '43'); INSERT INTO `permissions` VALUES ('45', 'admin.order.detail', '订单详细', null, '2017-04-20 06:05:46', '2017-04-20 06:05:46', '43'); INSERT INTO `permissions` VALUES ('46', 'admin.room.index', '房间管理', '', '2017-05-08 09:19:27', '2017-05-08 09:19:27', '28'); INSERT INTO `permissions` VALUES ('47', 'admin.room.add', '添加房间', '', '2017-05-08 09:19:38', '2017-05-08 09:19:38', '28'); INSERT INTO `permissions` VALUES ('48', 'admin.room.edit', '编辑房间', '', '2017-05-08 09:19:51', '2017-05-08 09:19:51', '28'); INSERT INTO `permissions` VALUES ('49', 'admin.room.del', '删除房间', '', '2017-05-08 09:20:04', '2017-05-08 09:20:04', '28'); INSERT INTO `permissions` VALUES ('50', 'admin.device.manage', '设备', '', '2017-05-08 09:21:02', '2017-05-08 09:21:02', '0'); INSERT INTO `permissions` VALUES ('51', 'admin.device.index', '设备管理', '', '2017-05-08 09:21:19', '2017-05-08 09:21:19', '50'); INSERT INTO `permissions` VALUES ('52', 'admin.device.add', '添加设备', '', '2017-05-08 09:21:39', '2017-05-08 09:23:53', '50'); INSERT INTO `permissions` VALUES ('53', 'admin.device.del', '删除设备', '', '2017-05-08 09:21:51', '2017-05-08 09:24:03', '50'); INSERT INTO `permissions` VALUES ('54', 'admin.device.edit', '编辑设备', '', '2017-05-08 09:22:20', '2017-05-08 09:22:20', '50'); INSERT INTO `permissions` VALUES ('55', 'admin.electric.add', '添加电器', '', '2017-05-08 09:22:46', '2017-05-08 09:22:46', '50'); INSERT INTO `permissions` VALUES ('56', 'admin.device.chart', '能耗统计', '', '2017-05-08 09:23:04', '2017-05-08 09:23:04', '0'); INSERT INTO `permissions` VALUES ('57', 'admin.device.live', '冷热实况', '', '2017-05-08 09:23:25', '2017-05-08 09:23:25', '50'); -- ---------------------------- -- Table structure for permission_role -- ---------------------------- DROP TABLE IF EXISTS `permission_role`; CREATE TABLE `permission_role` ( `permission_id` int(10) unsigned NOT NULL, `role_id` int(10) unsigned NOT NULL, PRIMARY KEY (`permission_id`,`role_id`), KEY `permission_role_role_id_foreign` (`role_id`), CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of permission_role -- ---------------------------- INSERT INTO `permission_role` VALUES ('1', '2'); INSERT INTO `permission_role` VALUES ('2', '2'); INSERT INTO `permission_role` VALUES ('6', '2'); INSERT INTO `permission_role` VALUES ('7', '2'); INSERT INTO `permission_role` VALUES ('8', '2'); INSERT INTO `permission_role` VALUES ('9', '2'); INSERT INTO `permission_role` VALUES ('10', '2'); INSERT INTO `permission_role` VALUES ('11', '2'); INSERT INTO `permission_role` VALUES ('12', '2'); INSERT INTO `permission_role` VALUES ('19', '2'); INSERT INTO `permission_role` VALUES ('20', '2'); INSERT INTO `permission_role` VALUES ('21', '2'); INSERT INTO `permission_role` VALUES ('22', '2'); INSERT INTO `permission_role` VALUES ('23', '2'); INSERT INTO `permission_role` VALUES ('24', '2'); INSERT INTO `permission_role` VALUES ('25', '2'); INSERT INTO `permission_role` VALUES ('26', '2'); INSERT INTO `permission_role` VALUES ('27', '2'); INSERT INTO `permission_role` VALUES ('28', '2'); INSERT INTO `permission_role` VALUES ('29', '2'); INSERT INTO `permission_role` VALUES ('30', '2'); INSERT INTO `permission_role` VALUES ('31', '2'); INSERT INTO `permission_role` VALUES ('32', '2'); INSERT INTO `permission_role` VALUES ('33', '2'); INSERT INTO `permission_role` VALUES ('34', '2'); INSERT INTO `permission_role` VALUES ('35', '2'); INSERT INTO `permission_role` VALUES ('36', '2'); INSERT INTO `permission_role` VALUES ('38', '2'); INSERT INTO `permission_role` VALUES ('39', '2'); INSERT INTO `permission_role` VALUES ('40', '2'); INSERT INTO `permission_role` VALUES ('41', '2'); INSERT INTO `permission_role` VALUES ('42', '2'); INSERT INTO `permission_role` VALUES ('43', '2'); INSERT INTO `permission_role` VALUES ('44', '2'); INSERT INTO `permission_role` VALUES ('45', '2'); INSERT INTO `permission_role` VALUES ('1', '3'); INSERT INTO `permission_role` VALUES ('2', '3'); INSERT INTO `permission_role` VALUES ('46', '3'); INSERT INTO `permission_role` VALUES ('47', '3'); INSERT INTO `permission_role` VALUES ('48', '3'); INSERT INTO `permission_role` VALUES ('49', '3'); INSERT INTO `permission_role` VALUES ('50', '3'); INSERT INTO `permission_role` VALUES ('51', '3'); INSERT INTO `permission_role` VALUES ('52', '3'); INSERT INTO `permission_role` VALUES ('53', '3'); INSERT INTO `permission_role` VALUES ('54', '3'); INSERT INTO `permission_role` VALUES ('55', '3'); INSERT INTO `permission_role` VALUES ('56', '3'); INSERT INTO `permission_role` VALUES ('57', '3'); INSERT INTO `permission_role` VALUES ('1', '4'); INSERT INTO `permission_role` VALUES ('2', '4'); INSERT INTO `permission_role` VALUES ('46', '4'); INSERT INTO `permission_role` VALUES ('47', '4'); INSERT INTO `permission_role` VALUES ('48', '4'); INSERT INTO `permission_role` VALUES ('49', '4'); INSERT INTO `permission_role` VALUES ('50', '4'); INSERT INTO `permission_role` VALUES ('51', '4'); INSERT INTO `permission_role` VALUES ('52', '4'); INSERT INTO `permission_role` VALUES ('53', '4'); INSERT INTO `permission_role` VALUES ('54', '4'); INSERT INTO `permission_role` VALUES ('55', '4'); INSERT INTO `permission_role` VALUES ('56', '4'); INSERT INTO `permission_role` VALUES ('57', '4'); -- ---------------------------- -- Table structure for roles -- ---------------------------- DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `roles_name_unique` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of roles -- ---------------------------- INSERT INTO `roles` VALUES ('2', 'admin', '超级管理员', 'User is allowed to manage and edit other users', '2017-03-18 01:29:45', '2017-03-18 01:29:49'); INSERT INTO `roles` VALUES ('3', 'level2', '直营酒店', '酒店下面没有分店的加盟店', '2017-05-08 09:16:52', '2017-05-08 09:27:10'); INSERT INTO `roles` VALUES ('4', 'level3', '分店', '加盟店下面的分店', '2017-05-08 09:26:54', '2017-05-08 09:26:54'); -- ---------------------------- -- Table structure for role_user -- ---------------------------- DROP TABLE IF EXISTS `role_user`; CREATE TABLE `role_user` ( `user_id` int(10) unsigned NOT NULL, `role_id` int(10) unsigned NOT NULL, PRIMARY KEY (`user_id`,`role_id`), KEY `role_user_role_id_foreign` (`role_id`), CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `role_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of role_user -- ---------------------------- INSERT INTO `role_user` VALUES ('2', '2'); -- ---------------------------- -- Table structure for room -- ---------------------------- DROP TABLE IF EXISTS `room`; CREATE TABLE `room` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '酒店id', `num` mediumint(6) unsigned NOT NULL DEFAULT '0' COMMENT '房号', `name` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '房间名称', `created_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of room -- ---------------------------- INSERT INTO `room` VALUES ('1', '10000', '303', '11', '2017-05-09 13:50:57'); INSERT INTO `room` VALUES ('3', '10002', '1231', '13123123', '2017-05-05 14:48:40'); INSERT INTO `room` VALUES ('4', '10000', '1231', '31231', '2017-05-05 17:31:00'); -- ---------------------------- -- Table structure for setting -- ---------------------------- DROP TABLE IF EXISTS `setting`; CREATE TABLE `setting` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `key` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `value` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of setting -- ---------------------------- -- ---------------------------- -- Table structure for users -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `email` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '酒店登陆账号', `name` varchar(48) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '酒店名称', `password` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '密码', `province_id` mediumint(8) unsigned DEFAULT '1', `city_id` mediumint(8) unsigned DEFAULT '1' COMMENT '城市id', `area_id` mediumint(8) unsigned DEFAULT '1' COMMENT '区域id', `area_info` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '详细地址', `phone` varchar(18) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '联系电话', `pid` int(10) unsigned DEFAULT '0' COMMENT '上级id', `level` tinyint(1) unsigned DEFAULT '1' COMMENT '1加盟店 2分店', `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `h_name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=10003 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of users -- ---------------------------- INSERT INTO `users` VALUES ('2', 'lkd0769@126.com', 'kk', '$2y$10$KVoEEARt8/MH1wqiWmI0.eqzXMgMH/.nlDL11FnbqV9W5lIyCd6AC', null, null, '0', null, null, '1', '1', 'dEDrkFCcx593wcbWLR6Uih98x5j6vs7eGHkQh25m8J6AdctWHG2xgdDFnXz4', '2017-05-04 09:36:40', '2017-05-04 09:36:40'); INSERT INTO `users` VALUES ('3', 'sevenHotel', '7天连锁酒店', '$2y$10$HodL8PyBPJ40aoqYqRHKQes98VRHm4gxbFr1M.eYomE8OcCvjQwmu', '1', '1', '1', null, null, '0', '1', null, '2017-05-05 01:13:28', '2017-05-05 01:13:28'); INSERT INTO `users` VALUES ('10000', '515961601@qq.com', 'krlee', '$2y$10$KVoEEARt8/MH1wqiWmI0.eqzXMgMH/.nlDL11FnbqV9W5lIyCd6AC', '1', '1', '1', '131', '222', '0', '1', 'fb1r4Ed04v5KXah73aQtpuIMofZcBAGpnv4SqcGexf6HWdPjhWVWlaWQ2u8E', '2017-05-05 17:21:14', '2017-05-05 17:21:14'); INSERT INTO `users` VALUES ('10001', 'eight1', '8天3123', '$2y$10$vTAaBA13xvVgE8utrJ1AZeKZZIdirYkQxJWOs6D65AdMyB7IPhQ9G', '19', '305', '5044', '广东 东莞市 樟木头镇 23123', '13172166171', '0', '1', null, '2017-05-05 15:15:24', '2017-05-05 15:15:24'); INSERT INTO `users` VALUES ('10002', 'eight', '8天3123', '$2y$10$agbfh2P3/X0gPXMq25EgCepnem.RsSFq4px2GGWGxJ9I8eR62aMNO', '19', '305', '5044', '广东 东莞市 樟木头镇 23123', '13172166171', '10000', '2', null, '2017-05-05 15:15:51', '2017-05-05 07:15:51'); -- ---------------------------- -- Table structure for users_chart -- ---------------------------- DROP TABLE IF EXISTS `users_chart`; CREATE TABLE `users_chart` ( `user_id` int(10) unsigned NOT NULL, `device_count` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '设备总数量', PRIMARY KEY (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of users_chart -- ---------------------------- INSERT INTO `users_chart` VALUES ('3', '0'); -- ---------------------------- -- Table structure for users_gizwit -- ---------------------------- DROP TABLE IF EXISTS `users_gizwit`; CREATE TABLE `users_gizwit` ( `gizwit_id` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, `uid` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, `expire_at` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最终有效期时间', PRIMARY KEY (`gizwit_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of users_gizwit -- ----------------------------
true
ff9c3d147320d61e75b9e59484abf0f8ca211c70
SQL
fleetmack/mines
/me/acknowledgment/acknowledgment 2004/ack_letters_sql/completed/standard_pc_done.SQL
UTF-8
6,339
2.9375
3
[]
no_license
/**************************/ /*** Standard PC Letter ***/ /**************************/ UPDATE a_ack_rcpt SET ack_letter1 = DECODE(ack_segment,'Gugg','I would personally like to t', 'T')|| 'hank you for your generous gift to Colorado School of Mines.'|| DECODE(flag_committee, 'Reun', ' Your service on the 2003-2004 Reunion Giving Program Committee and your '|| 'financial gift play an important role in helping the School sustain the excellence for '|| 'which it is known. In recognition of your financial gift, I welcome you to the '|| society|| ' Society of the 2002-2003 Mines President'|| CHR(39)|| 's Council.', 'PC', ' Your service on the '|| committee_region|| ' Regional President'|| CHR(39)|| 's Council '|| 'Committee and your financial gift play an important role in helping the School sustain the '|| 'excellence for which it is known. In recognition of your financial gift, I welcome you to the '|| society|| ' Society of the 2002-2003 Mines President'|| CHR(39)|| 's Council.', 'Both', ' You are among a very special group of individuals who '|| 'support the School with both their financial resources and their time. I thank you for '|| 'your financial contribution and your service on the '|| committee_region|| ' Regional President'|| CHR(39)|| 's Council '|| 'Committee and Reunion Giving Committee. These expressions of dedication to the '|| 'School play an important role in helping Mines sustain the excellence for which it is '|| 'known. In recognition of your financial gift, I welcome you to the '|| society|| ' Society '|| 'of the 2003-2004 Mines President'|| CHR(39)|| 's Council.', ' ')|| 'In recognition of your'|| DECODE(ack_segment, 'Gugg', ' remarkable contribution, it is my honor and pleasure to welcome '|| 'you to the '|| society|| ' Society of the 2003-2004 Mines President'|| CHR(39)|| 's Council. You '|| 'are part of a highly select group of the School'|| CHR(39)|| 's most vital and dedicated donors. I hope '|| 'to have an opportunity to thank you personally in the near future.'||, 'Parent PC',' contribution, it is my pleasure to welcome you to the '|| society|| ' Society of the 2003-'|| '2004 Mines President'|| CHR(39)|| 's Council, a select group of the School'|| CHR(39)|| 's most dedicated donors.'|| ' We deeply appreciate your gift in addition to the investment of sending your '|| 'CHILD/CHILDREN to Mines.', /***Otherwise - meaning - for Parent PC or PC***/ ' contribution, it is my pleasure to welcome you to the'|| society|| ' Society of the '|| '2003-2004 Mines President'|| CHR(39)|| 's Council, a select group of the School'|| CHR(39)|| 's most dedicated donors.')|| CHR(13)|| CHR(13)|| 'Mines is distinguished by its ability to deliver a learning experience that emphasizes '|| 'problem-solving, technical knowledge, and hands-on-training. These essential '|| 'components of our academic environment are crucial to our overall mission to discover, '|| 'transform, and sustain the resources that fuel prosperity. Upon leaving Mines, our '|| 'graduates are well equipped to carry this mission with them into the ever-changing global '|| 'marketplace.'|| CHR(13)|| CHR(13)|| 'Today, as our standard of living continues to rise, demand for the capabilities of an '|| 'institution like Mines rises as well. Your support helps us address this demand with '|| 'confidence.'|| CHR(13)|| CHR(13)|| DECODE(ack_segment, 'Gugg', 'On behalf of the entire campus community, thank you again for your exceptional '|| 'commitment to Mines and its mission. The dedication of generous donors like you will '|| 'ensure the success of Mines for years to come.', 'Parent PC', 'Thank you again for supporting your CHILD/CHILDREN education. The '|| 'commitment of parents like you helps ensure the success of Mines for years to come.', /***OthwerwisePC and PP PC***/'Again, thank you for your commitment to Mines and its mission. The dedication of '|| 'donors like you will ensure the success of the School for years to come.'||) WHERE ack_segment IN ('Gugg','Parent PC', 'PC', 'Memorial PC', 'Pledge Payment PC') AND signer = 'Pres' AND ack_letter1 IS NULL; COMMIT; / /***************************************************************************/ /*** Indicate if no letter was generated for a Payroll Deduction Segment ***/ /***************************************************************************/ UPDATE a_ack_rcpt SET ack_letter1 = 'No letter generated for PC Gift' WHERE signer = 'Pres' AND ack_segment IN ('Gugg','Parent PC','PC','Pledge Payment PC') AND ack_letter1 IS NULL; COMMIT; / EXIT;
true
22d3713171ea9fbf5a6f2715ca0eca269bbafaa0
SQL
annewang27/cura
/schema.sql
UTF-8
579
2.75
3
[]
no_license
DROP TABLE IF EXISTS art; CREATE TABLE art ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT NOT NULL, artist TEXT NOT NULL, created TEXT NOT NULL, gallery_id INTEGER NOT NULL, summary TEXT NOT NULL, photo BLOB NOT NULL ); DROP TABLE IF EXISTS artist; CREATE TABLE artist ( id INTEGER PRIMARY KEY AUTOINCREMENT, full_name TEXT NOT NULL, dob TEXT NOT NULL, summary TEXT NOT NULL ); DROP TABLE IF EXISTS gallery; CREATE TABLE gallery ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT NOT NULL, summary TEXT NOT NULL );
true
625248259edc324f1ae617c9c854a2024df725e1
SQL
jg-db-riga/2
/l4-materialized_view_task.sql
UTF-8
2,303
3.375
3
[]
no_license
1. Create XX_CARS table with following attributes: ID PRIMARY KEY NUMBER, MANUFACTURER VARCHAR2(100), MODEL VARCHHAR2(100), YEAR VARCHAR2(4) 2. Insert a new car to XX_CARS table 3. COMMIT transaction 4. Create XX_CARS_MV materialized view with following properties: BUILD DEFERRED, REFRESH FORCE, ON DEMAND. Query to use: Get all data from xx_cars 5. Check that no data exists in XX_CARS_MV despite you have inserted table to XX_CARS. Try to explain why? 6. Run gather statistics command: BEGIN DBMS_STATS.gather_table_stats( ownname => 'WORKING', tabname => 'XX_CARS_MV'); END; 7. Run DBMS_REFRESH.make command: BEGIN DBMS_REFRESH.make( name => 'WORKING.MINUTE_REFRESH', list => '', next_date => SYSDATE, interval => '/*1:Mins*/ SYSDATE + 1/(60*24)', implicit_destroy => FALSE, lax => FALSE, job => 0, rollback_seg => NULL, push_deferred_rpc => TRUE, refresh_after_errors => TRUE, purge_option => NULL, parallelism => NULL, heap_size => NULL); END; 8. Add DBMS_REFRESH.add command: BEGIN DBMS_REFRESH.add( name => 'WORKING.MINUTE_REFRESH', list => 'WORKING.XX_CARS_MV', lax => TRUE); END; 9. Wait and check till XX_CARS_MV will return record inserted to XX_CARS. 10. Insert two more records to XX_CARS 11. Commit transaction 12. Wait and check till new records created appears in XX_CARS_MV. Try to explain why? 13. Run DBMS_REFRESH.destroy command: BEGIN DBMS_REFRESH.destroy(name => 'WORKING.MINUTE_REFRESH'); END; 14. Drop XX_CARS_MV materialized VIEW DROP MATERIALIZED VIEW XX_CARS_MV; 15. Think about SYSDATE + 1/(60*24) expession. Change it in order to return current time + 10 minutes. Write select <expression> from dual; SQL statement to prove it. 16. Think about SYSDATE + 1/(60*24) expession. Change it in order to return current time + 2 hours. Write select <expression> from dual; SQL statement to prove it. 17. Think about SYSDATE + 1/(60*24) expession. Change it in order to return current time + 1 day + 2 hours. Write select <expression> from dual; SQL statement to prove it.
true
ff11d7ac646f9d79b389678f368b8a387b19b4b8
SQL
Rafael7silva/Banco-de-dados
/Pizzaria carrinho.sql
UTF-8
2,727
3.984375
4
[ "MIT" ]
permissive
create database carrinhorafael; use carrinhorafael; -- carinho de compras Rafael -- decimal (tipo de dados numericos não int 10,2 dez digitos com 2 casas decimais de precisão create table carrinho ( codigo int primary key auto_increment, produto varchar(250) not null, quantidade int not null, valor decimal (10,2) not null ); describe carrinho; drop table carrinho; -- CRUD create insert into carrinho(produto,quantidade,valor) values('Caneta bic Azul CX30', 10, 17.50); insert into carrinho(produto,quantidade,valor) values('Borracha Mercurio CX50', 10, 15.30); insert into carrinho(produto,quantidade,valor) values('Caneta Bic vermelha CX30', 10, 17.50); insert into carrinho(produto,quantidade,valor) values('Caneta Bic Preta bic CX30', 10, 17.50); insert into carrinho(produto,quantidade,valor) values('Corretivo Mercurio CX20 ', 10, 37.50); insert into carrinho(produto,quantidade,valor) values('Lapis de cor', 10, 17.50); insert into carrinho(produto,quantidade,valor) values('Caderno Tilibra CX30', 10, 22.50); insert into carrinho(produto,quantidade,valor) values('Apontador Stabilo', 10, 1.00); -- operações matematicas select sum(valor * quantidade) as total from carrinho; -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- CRUD read -- selecionar todods os registros (dados) da tabela select produto, valor from carrinho; select valor, quantidade from carrinho; select produto, quantidade from carrinho; -- crud (create read update delete) -- operações basicas do banco de dados insert into carrinho (produto, quantidade, valor) values ('Macarrao', '100', 1.000); insert into carrinho (produto, quantidade, valor) values ('Cerveja', '100', 2.000); insert into carrinho (produto, quantidade, valor) values ('Camisa do Timão', '100', 1.000000); -- CRUD read -- selecionar todods os registros (dados) da tabela -- select colunas especificas da table select * from carrinho order by valor; select * from carrinho order by produto; select * from carrinho order by quantidade; -- select em ordem alfa/nume(asc desc) select codigo, produto from carrinho order by codigo desc; select codigo, produto from carrinho order by codigo asc; -- uso de filtros select * from carrinho where codigo = 11; select * from carrinho where produto = 'Lapis de cor'; select * from carrinho where valor like '17.50%'; -- crud update update carrinho set produto= 'Lapis de cor CX12' where codigo= 6; update carrinho set quantidade= '50' where codigo= 1; update carrinho set valor= '2000.00' where codigo= 11; -- crude delete -- Não esquecer de usar o id para evitar e validar o comando delete from carrinho where codigo= 10; delete from carrinho where codigo= 9; select * from carrinho;
true
ac606970a2b9271696cc39bc72cb5bf99c9876d8
SQL
Mark4348/Employee-CMS
/schema.sql
UTF-8
638
3.515625
4
[]
no_license
DROP DATABASE IF EXISTS employeecms; CREATE DATABASE employeecms; USE employeecms; CREATE TABLE departments( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, department_name VARCHAR(30) ); CREATE TABLE employees( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name NOT NULL VARCHAR(30), last_name NOT NULL VARCHAR(30), employee_role INTEGER, FOREIGN KEY (roles_id) REFERENCES roles(id) ); CREATE TABLE roles( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30), salary DECIMAL(6,2), department_id INTEGER, FOREIGN KEY (department_id) REFERENCES departments(id) );
true
d0209c53b2335bfe94fbda4b5e279b5a30e7e5cc
SQL
DominicAbogado/bamazon
/assignment12.sql
UTF-8
693
3.484375
3
[]
no_license
drop database if exists bamazon2; create database bitemnameamazon2; use bamazon2; create table products( -- item ID -- id integer not null auto_increment, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(50) NOT NULL, price integer(100), stock_quantity integer(100), in_stock BOOLEAN default true NOT NULL, primary key (id) ); create table auctions2( id integer not null auto_increment, itemname varchar(50) not null, category varchar(50) not null, startingbid integer default 0, highestbid integer default 0, primary key (id) ); INSERT INTO product (product_name, department_name, price, stock_quantity, in_stock) values ("Ruby-Quartz Crystal Visor", "X-Men", 99.99, 1, true);
true
41b21ce4bcf4125c7a40d456843a4889385ed857
SQL
sylxjtu/act-backend
/sql/migrate-v0.6-alpha.sql
UTF-8
337
3
3
[]
no_license
-- Allow NULL value occur in room ALTER TABLE `activity` CHANGE `roomId` `roomId` INT(11) NULL; -- Remove the restriction to delete room ALTER TABLE `activity` DROP FOREIGN KEY `activity_ibfk_1`; ALTER TABLE `activity` ADD CONSTRAINT `activity_ibfk_1` FOREIGN KEY (`roomId`) REFERENCES `room`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
true
1f979430027efa405f3facf4d56e5973129bf7c3
SQL
amydinsyahira/soapAPI
/api.sql
UTF-8
1,716
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.1.3.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Waktu pembuatan: 17. Agustus 2011 jam 16:11 -- Versi Server: 5.1.33 -- Versi PHP: 5.2.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `api` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `weather` -- CREATE TABLE IF NOT EXISTS `weather` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `city` varchar(20) DEFAULT NULL, `degrees` float NOT NULL DEFAULT '0', `forecast` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `city` (`city`), KEY `city_2` (`city`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data untuk tabel `weather` -- INSERT INTO `weather` (`id`, `city`, `degrees`, `forecast`) VALUES (1, 'Chicago', 5, 'Partly cloudy.'), (2, 'London', 15, 'Sun along with patchy clouds.'); -- -------------------------------------------------------- -- -- Struktur dari tabel `member` -- CREATE TABLE IF NOT EXISTS `member` ( `idmember` int(11) NOT NULL AUTO_INCREMENT, `member` varchar(30) NOT NULL, `api_key` varchar(100) NOT NULL, `api_token` varchar(100) NOT NULL, PRIMARY KEY (`idmember`), UNIQUE KEY `member` (`member`,`api_key`,`api_token`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data untuk tabel `member` -- INSERT INTO `member` (`idmember`, `member`, `api_key`, `api_token`) VALUES (1, 'Amydin', '1f23087e61073d855eb287142a14a41a', '699bac0da9e26c7f30b44869d6113fd0');
true
7ba88f3d8d1731efec82e26a353ae85daf4ddf53
SQL
ElifKarakutukDinc/dvd_rental
/join_table/Script_2_16.sql
UTF-8
268
4.09375
4
[]
no_license
--Which store has the most movies? -- They can have the same movie select s.store_id, count(f.film_id) from store as s left join inventory as i on (s.store_id=i.store_id) left join film as f on (f.film_id=i.film_id) group by s.store_id order by count(f.film_id) desc;
true
bff8c868b6ed27e60fbbcf0a50d2c6acf3da0c33
SQL
ly2014/um
/src/main/resource/db.sql
UTF-8
341
2.578125
3
[]
no_license
if not exists table t_user; create table t_user ( id int primary key, num varchar(20) not null, name varchar(20) not null, sex varchar(2) not null, age int not null comment, remark varchar(255) comment, status int not null comment, create_time datetime not null, edit_time datetime not null )charset=utf8;
true
bc6d947d29269710bf6fea38de9ccfcbc1cf8afb
SQL
Lespig/Mycodingprogress
/SQL/module11/unions.sql
UTF-8
320
2.78125
3
[]
no_license
SELECT first_name AS Company_Names FROM employee UNION SELECT branch_name FROM branch UNION SELECT client_name FROM client; SELECT client_name, client.branch_id FROM client UNION SELECT supplier_name, branch_supplier.branch_id FROM branch_supplier; SELECT salary FROM employee UNION SELECT total_sales FROM works_with;
true
4126a655205f4a79db63558d5541ce76d9b95a17
SQL
esteves-esta/sistema-goodeyes
/bd_goodeyes_INSERTS.sql
UTF-8
20,851
3.484375
3
[]
no_license
/* PROCEDURES DO BANCO DE DADOS GOODEYES */ /* **INSERIR********************************************* */ /* -- LOGIN*/ DELIMITER $$ drop procedure if exists pa_inserirLogin $$ create procedure pa_inserirLogin ( $email varchar (60), $senha varchar (8), $nivel_acesso int ) main: begin insert into tbLogin (email, senha, nivel_acesso) values ($email, $senha, $nivel_acesso); end$$ DELIMITER ; call pa_inserirLogin ('ana.silva@outlook.com','a', 1); call pa_inserirLogin ('jorge.carneiro@outlook.com','jor12456', 1); call pa_inserirLogin ('maria.veloso@outlook.com','maveloso', 1); call pa_inserirLogin ('julia.barbosa@outlook.com', 'barbosa',2); call pa_inserirLogin ('leticia.vieira@outlook.com', '12345678',2); call pa_inserirLogin ('carla.silva@outlook.com','carla',3); call pa_inserirLogin ('martha.martins@outlook.com','adm45678',3); /* -- CLIENTE*/ DELIMITER $$ drop procedure if exists pa_inserirCliente $$ create Procedure pa_inserirCliente ( $email varchar (50), $nome varchar (30), $sobrenome varchar(50), $no_cpf varchar (14), $no_tel varchar (14), $no_cel varchar (15), $dt_nascimento varchar (10), $nm_rua varchar (50), $no_rua varchar (5), $no_cep varchar (9), $bairro varchar (50), $cidade varchar (50), $estado varchar (50), $sg_uf varchar (2), $complemento varchar (30) ) main: begin insert into tbCliente ( email, nome, sobrenome, no_cpf, no_tel, no_cel, dt_nascimento, nm_rua, no_rua, no_cep, bairro, cidade, estado, sg_uf, complemento ) values ( $email, $nome, $sobrenome, $no_cpf, $no_tel, $no_cel, $dt_nascimento, $nm_rua, $no_rua, $no_cep, $bairro, $cidade, $estado, $sg_uf, $complemento ); end$$ DELIMITER ; call pa_inserirCliente ('ana.silva@outlook.com','Ana', 'Silva', '411.171.988-02', '(11)3947-5213', '(11)96554-2536', '02/06/1990', 'Rua 2', '45', '02990-270', 'Jardim Amélia','Pirapora', 'São Paulo', 'SP', 'apt A'); call pa_inserirCliente ('jorge.carneiro@outlook.com','Jorge', 'Carneiro', '411.557.911-05', '(11)3947-5758', '(11)91236-2756', '08/05/1995', 'Rua 5', '15', '02990-111', 'Jardim Rosa', 'Santos','São Paulo', 'SP', 'apt C'); call pa_inserirCliente ('maria.veloso@outlook.com','Maria', 'Veloso', '322.222.999-04', '(11)3947-5758', '(11)91236-2756', '01/05/1996', 'Rua 7', '02', '02981-222', 'Jardim Peri', 'Jundiai','São Paulo', 'SP', 'apt F'); /* -- RECEITA*/ DELIMITER $$ drop procedure if exists pa_inserirReceita $$ create Procedure pa_inserirReceita ( $cd_cliente int, $olho_direito varchar (40), $olho_esquerdo varchar (40), $distancia_pupilar varchar (10), $nm_oftalmo varchar (50), $sobrenome_oftalmo varchar(50), $dt_receita varchar(10), $dt_validade varchar(10), $observacao varchar (255) ) main: begin insert into tbReceita ( cd_cliente, olho_direito, olho_esquerdo, distancia_pupilar, nm_oftalmo, sobrenome_oftalmo, dt_receita, dt_validade, observacao ) values ( $cd_cliente, $olho_direito, $olho_esquerdo, $distancia_pupilar, $nm_oftalmo, $sobrenome_oftalmo, $dt_receita, $dt_validade, $observacao ); end$$ DELIMITER ; call pa_inserirReceita (1,'+4,50 -2,00 180° +1', '+2,50 -2,00 180° +1', '10mm','Laura', 'Fernandes', '15/04/2018', '15/05/2018', 'Lente bifocal'); call pa_inserirReceita (2, '2 0 0 0', '-1,50 0 0 0','10mm', 'Ricardo', 'Freitas', '10/06/2018', '10/07/2018', 'Lente transitions'); call pa_inserirReceita (3, '0 0 0 0', '-1,10 0 0 0','15mm', 'Paulo', 'Avelino', '02/09/2018', '02/09/2018', 'Lente transitions'); /* -- FUNCIONÁRIO*/ DELIMITER $$ drop procedure if exists pa_inserirFuncionario $$ create Procedure pa_inserirFuncionario ( $email varchar(60), $nome varchar(30), $sobrenome varchar(50), $no_cpf varchar(14), $cargo varchar(30), $no_tel varchar(14), $no_cel varchar(15), $dt_nascimento varchar(10), $nm_rua varchar(50), $no_rua varchar(5), $no_cep varchar(9), $bairro varchar(50), $cidade varchar(50), $estado varchar(50), $sg_uf varchar(2), $complemento varchar(30) ) main: begin insert into tbFuncionario ( email, nome, sobrenome, no_cpf, cargo, no_tel, no_cel, dt_nascimento, nm_rua, no_rua, no_cep, bairro, cidade, estado, sg_uf, complemento ) values ( $email, $nome, $sobrenome, $no_cpf, $cargo, $no_tel, $no_cel, $dt_nascimento, $nm_rua, $no_rua, $no_cep, $bairro, $cidade, $estado, $sg_uf, $complemento ); end $$ DELIMITER ; call pa_inserirFuncionario ('julia.barbosa@outlook.com','Julia', 'Santos Barbosa', '254.569.744-08', 'Atendente', '(11) 6598-4521', '(11) 96532-7854', '13/06/1989', 'Rua 1', '02', '02555-222', 'Av. Ramos', 'Vinhedo','São Paulo', 'SP', 'nenhum'); call pa_inserirFuncionario ('leticia.vieira@outlook.com','Leticia', 'Vieira Lemos', '145.456.984-01', 'Recepcionista', '(11) 9965-4569', '(11) 96532-1111', '03/01/1990', 'Rua 03', '25', '03040-256', 'Jardim Perdizes','Santo André', 'São Paulo', 'SP', 'apt F'); call pa_inserirFuncionario ('carla.silva@outlook.com', 'Carla', 'Veloso Silva', '122.555.999-04', 'Gerente', '(11) 9111-4449', '(11) 96555-2211', '09/09/1990', 'Rua 07', '40', '03040-522', 'Jardim Pedra', 'Vinhedo','São Paulo', 'SP', 'apt E'); call pa_inserirFuncionario ('martha.martins@outlook.com', 'martha', 'martins', '852.452.949-12', 'Gerente', '(11) 4212-3521', '(11) 94512-4511', '12/10/1982', 'Rua de Paula', '40', '8425-522', 'Jardim Moreira', 'Lopes','São Paulo', 'SP', 'apt E'); /* -- FORNECEDOR*/ DELIMITER $$ drop procedure if exists pa_inserirFornecedor $$ create Procedure pa_inserirFornecedor ( $nome varchar(30), $sobrenome varchar(50), $email varchar(50), $no_tel varchar(14), $no_cnpj varchar(18) ) main: begin insert into tbFornecedor ( nome, sobrenome, email, no_tel, no_cnpj ) values ( $nome, $sobrenome, $email, $no_tel, $no_cnpj ); end $$ DELIMITER ; call pa_inserirFornecedor ('Rafael', 'Costa', 'rafael.costa@outlook.com', '(11)3655-2010', '11.245.578/0001-30'); call pa_inserirFornecedor ('Roberto', 'Ribeiro', 'roberto.ribeiro@outlook.com', '(11)3775-4526', '12.255.511/0001-50'); call pa_inserirFornecedor ('Jorge', 'Ferreira', 'jorge.ferreira@outlook.com', '(11)3775-4526', '90.520.623/0001-50'); call pa_inserirFornecedor ('Alice', 'Machado', 'alicemachado@outlook.com', '(11)8754-9560', '24.085.104/0001-50'); call pa_inserirFornecedor ('Luisa', 'Carla Pereira', 'lup@outlook.com', '(11)3545-2526', '52.910.065/0001-50'); call pa_inserirFornecedor ('Alex', 'Romero', 'alexro@outlook.com', '(11)012-4806', '36.275.511/0001-50'); call pa_inserirFornecedor ('Sebastião', 'Silva', 'sebastian@outlook.com', '(11)3475-4326', '17.024.511/0001-50'); /* -- FORNECEDOR MARCA*/ DELIMITER $$ drop procedure if exists pa_inserirFornecedorMarca $$ create Procedure pa_inserirFornecedorMarca ( $nm_marca varchar(50), $cd_fornecedor int ) main: begin insert into tbFornecedorMarca (nm_marca, cd_fornecedor) values ($nm_marca, $cd_fornecedor); end$$ DELIMITER ; call pa_inserirFornecedorMarca ('Chilli Beans', 1); call pa_inserirFornecedorMarca ('Carolina Herrera', 2); call pa_inserirFornecedorMarca ('Adidas', 3); call pa_inserirFornecedorMarca ('Fendi', 4); call pa_inserirFornecedorMarca ('Polaroid', 5); call pa_inserirFornecedorMarca ('GUESS', 6); call pa_inserirFornecedorMarca ('Havana', 7); call pa_inserirFornecedorMarca ('BrowStripes', 6); call pa_inserirFornecedorMarca ('Atitude', 7); call pa_inserirFornecedorMarca ('Havaianas', 3); call pa_inserirFornecedorMarca ('Armani', 4); call pa_inserirFornecedorMarca ('Klipling', 5); call pa_inserirFornecedorMarca ('Rayban', 1); call pa_inserirFornecedorMarca ('Oakley', 2); call pa_inserirFornecedorMarca ('Teaser', 2); call pa_inserirFornecedorMarca ('Hip7', 2); call pa_inserirFornecedorMarca ('Crizal', 6); call pa_inserirFornecedorMarca ('Biofinty', 7); call pa_inserirFornecedorMarca ('Acuvue', 7); call pa_inserirFornecedorMarca ('Solotica', 3); call pa_inserirFornecedorMarca ('Natural Vision', 4); /* -- PRODUTO*/ DELIMITER $$ drop procedure if exists pa_inserirProduto $$ create Procedure pa_inserirProduto ( $nm_marca varchar(50), $tipo varchar(60), $descricao varchar(255), $aspecto varchar(255), $vl_preco_unitario decimal(10,2), $garantia varchar(20), $caminho_imagem varchar(255) ) main: begin insert into tbProduto ( nm_marca, tipo, descricao, aspecto, vl_preco_unitario, garantia, caminho_imagem ) values ( $nm_marca, $tipo, $descricao, $aspecto, $vl_preco_unitario, $garantia, $caminho_imagem ); end $$ DELIMITER ; -- oculos de sol FEMININO call pa_inserirProduto ('Carolina Herrera','Óculos de Sol', 'Madeira Redondo Feminino 15-25 Marrom Polarizada Preto', '22cm 135mm 53mm', 300.00,'1 ano', '/imagemProdutos/fendigatinho.jpg'); call pa_inserirProduto ('Adidas','Óculos de Sol', 'Acetato Quadrado Feminino 25-35 Preto Degradê Preto','20cm 135mm 40mm', 600.00,'6 meses', '/imagemProdutos/sol.jpg'); call pa_inserirProduto ('Fendi','Óculos de Sol', 'Metal Redondo Feminino 15-25 Rosa Espelhada Rosa', '30cm 150mm 40mm', 350.00,'1 ano', '/imagemProdutos/fendiRosaEspelhadoRosaGatinho.jpg'); call pa_inserirProduto ('GUESS','Óculos de Sol', 'Ácrilico Gatinho Feminino 46-65 Roxo Degradê Preto','15cm 130mm 38mm', 384.00,'6 meses', '/imagemProdutos/guessFem384.jpg'); call pa_inserirProduto ('BrowStripes','Óculos de Sol', 'Acetato Quadrado Feminino 35-45 Marrom Degradê Marrom', '14cm 150mm 37mm', 94.90,'1 ano', '/imagemProdutos/brownstripesFem94.jpg'); call pa_inserirProduto ('Havana','Óculos de Sol', 'Ácrilico Quadrado Feminino 5-10 Preto Degradê Preto','15cm 110mm 38mm', 600.00,'6 meses', '/imagemProdutos/havanaFem352.jpg'); call pa_inserirProduto ('Havaianas','Óculos de Sol', 'Acetato Quadrado Feminino 15-25 Rosa Degradê Preto','15cm 16mm 38mm', 212.00,'6 meses', '/imagemProdutos/havaianasFem212.jpg'); call pa_inserirProduto ('Rayban','Óculos de Sol', 'Metal Redondo Feminino 15-25 Rosa Espelhado Rosa','15cm 16mm 38mm', 212.00,'6 meses', '/imagemProdutos/rayban50065.jpg'); -- OCULOS DE SOL MASCULINO call pa_inserirProduto ('Polaroid','Óculos de Sol', 'Acetato Quadrado Masculino 10-15 Azul Polarizada Preto','10cm 140mm 38mm', 141.00,'1 ano', '/imagemProdutos/polaroidFem141.jpg'); call pa_inserirProduto ('Armani','Óculos de Sol', 'Ácrilico Quadrado Masculino 25-35 Azul Polarizada Transparente','15cm 130mm 35mm', 380.50,'1 ano', '/imagemProdutos/armaniMas380.jpg'); call pa_inserirProduto ('Havaianas','Óculos de Sol', 'Acetato Aviador Masculino 25-35 Dourado Degradê Preto','15cm 16mm 38mm', 475.00,'6 meses', '/imagemProdutos/raybanFem475.jpg'); call pa_inserirProduto ('Havana','Óculos de Sol', 'Metal Aviador Masculino 25-35 Preto Normal Azul','15cm 16mm 38mm', 500.00,'1 ano', '/imagemProdutos/solmas500.jpg'); call pa_inserirProduto ('BrowStripes','Óculos de Sol', 'Acetato Quadrado Masculino 35-45 Preto Degradê Preto','15cm 16mm 38mm', 219.90,'6 meses', '/imagemProdutos/solmas219.jpg'); call pa_inserirProduto ('GUESS','Óculos de Sol', 'Acetato Gatinho Masculino 45-65 Preto Normal Preto','15cm 16mm 38mm', 419.00,'1 ano', '/imagemProdutos/solmas419.jpg'); call pa_inserirProduto ('Fendi','Óculos de Sol', 'Metal Redondo Masculino 25-35 Preto Degradê Verde','15cm 16mm 38mm', 442.00,'6 meses', '/imagemProdutos/solmas442.jpg'); call pa_inserirProduto ('Rayban','Óculos de Sol', 'Acetato Redondo Masculino 45-65 Preto Degradê Verde','15cm 16mm 38mm', 329.00,'6 meses', '/imagemProdutos/rayban352.jpg'); call pa_inserirProduto ('Rayban','Óculos de Sol', 'Acetato Redondo Masculino 45-65 Azul Degradê Preto','15cm 16mm 38mm', 329.00,'6 meses', '/imagemProdutos/solmas84.jpg'); -- OCULOS DE GRAU FEMININO call pa_inserirProduto ('Klipling','Óculos de Grau', 'Metal Redondo Feminino 5-10 Azul Normal Transparente', '14cm 120mm 28mm', 257.00,'1 ano', '/imagemProdutos/kipling257.jpg'); call pa_inserirProduto ('Oakley','Óculos de Grau', 'Acetato Quadrado Feminino 25-35 Preto Normal Transparente','15cm 125mm 40mm', 387.00,'1 ano', '/imagemProdutos/oakley387.jpg'); call pa_inserirProduto ('Teaser','Óculos de Grau', 'Ácrilico Redondo Feminino 35- Branco Normal Transparente', '14cm 115mm 45mm', 94.00,'1 ano', '/imagemProdutos/teaserBranco94.jpg'); call pa_inserirProduto ('Teaser','Óculos de Grau', 'Ácrilico Redondo Feminino 15-25 Preto Normal Transparente', '14cm 115mm 45mm', 94.00,'1 ano', '/imagemProdutos/teaserPreto94.jpg'); call pa_inserirProduto ('Chilli Beans','Óculos de Grau', 'Metal Aviador Feminino 35-45 Dourado Normal Transparente','15cm 130mm 38mm', 500.00,'6 meses', '/imagemProdutos/grau.jpg'); call pa_inserirProduto ('Klipling','Óculos de Grau', 'Acetato Quadrado Feminino 5-10 Branco Normal Transparente', '14cm 120mm 28mm', 257.00,'1 ano', '/imagemProdutos/teaser1850.jpg'); call pa_inserirProduto ('Oakley','Óculos de Grau', 'Acetato Quadrado Feminino 25-35 Vermelho Normal Transparente','15cm 125mm 40mm', 387.00,'1 ano', '/imagemProdutos/dolce124.jpg'); call pa_inserirProduto ('Oakley','Óculos de Grau', 'Ácrilico Redondo Feminino 35- Branco Normal Transparente', '14cm 115mm 45mm', 94.00,'1 ano', '/imagemProdutos/femoakley112.jpg'); call pa_inserirProduto ('Rayban','Óculos de Grau', 'Ácrilico Redondo Feminino 15-25 Preto Normal Transparente', '14cm 115mm 45mm', 94.00,'1 ano', '/imagemProdutos/femrayban298.jpg'); call pa_inserirProduto ('Chilli Beans','Óculos de Grau', 'Acetato Quadrado Feminino 35-45 Preto Normal Transparente','15cm 130mm 38mm', 500.00,'6 meses', '/imagemProdutos/hickman165.jpg'); -- OCULOS DE GRAU MASCULINO call pa_inserirProduto ('Hip7','Óculos de Grau', 'Metal Aviador Masculino 35-45 Dourado Normal Transparente','15cm 130mm 40mm', 185.00,'6 meses', '/imagemProdutos/hip7Dourado185.jpg'); call pa_inserirProduto ('Rayban','Óculos de Grau', 'Metal Aviador Masculino 35-45 Cinza Normal Transparente','15cm 120mm 30mm', 464.00,'1 ano', '/imagemProdutos/rayban464.jpg'); call pa_inserirProduto ('Atitude','Óculos de Grau', 'Metal Quadrado Masculino 5-10 Azul Normal Transparente','10cm 120mm 30mm', 183.00,'1 ano', '/imagemProdutos/atitude183.jpg'); call pa_inserirProduto ('Hip7','Óculos de Grau', 'Metal Quadrado Masculino 35-45 Preto Normal Transparente','15cm 130mm 40mm', 62.20,'6 meses', '/imagemProdutos/grau6220.jpg'); call pa_inserirProduto ('Rayban','Óculos de Grau', 'Metal Aviador Masculino 35-45 Dourado Normal Transparente','15cm 120mm 30mm', 77.00,'1 ano', '/imagemProdutos/graumas77.jpg'); call pa_inserirProduto ('Atitude','Óculos de Grau', 'Acrílico Quadrado Masculino 35-45 Vermelho Normal Transparente','10cm 120mm 30mm', 310.00,'1 ano', '/imagemProdutos/graumas310.jpg'); call pa_inserirProduto ('Hip7','Óculos de Grau', 'Metal Quadrado Masculino 35-45 Vermelho Normal Transparente','15cm 130mm 40mm', 780.00,'6 meses', '/imagemProdutos/graumas780.jpg'); call pa_inserirProduto ('Rayban','Óculos de Grau', 'Metal Quadrado Masculino 35-45 Azul Normal Transparente','15cm 120mm 30mm', 65.78,'1 ano', '/imagemProdutos/graumas6578.jpg'); call pa_inserirProduto ('Atitude','Óculos de Grau', 'Acetato Redondo Masculino 5-10 Branco Normal Transparente','10cm 120mm 30mm', 50.00,'1 ano', '/imagemProdutos/graubranco.jpg'); -- LENTE MULTIFOCAL call pa_inserirProduto ('Solotica','Lente', 'Ácrilico Multifocal', 'Antiabrasivo Fotosensível Antirreflexo ProteçãoUVA/UVB', 1000.00,'1 ano', '/imagemProdutos/lentes.jpg'); call pa_inserirProduto ('Crizal','Lente', 'Ácrilico Multifocal', 'Antirreflexo ProteçãoUVA/UVB', 400.00,'1 ano', '/imagemProdutos/lentes.jpg'); call pa_inserirProduto ('Acuvue','Lente', 'Policarbonato Multifocal', 'Antiabrasivo Fotosensível Antirreflexo', 320.00,'1 ano', '/imagemProdutos/lentes.jpg'); -- LENTE MONOFOCAL call pa_inserirProduto ('Natural Vision','Lente', 'Crizal Monofocal', 'Antiabrasivo Antirreflexo ProteçãoUVA/UVB', 700.00,'1 ano', '/imagemProdutos/lentes.jpg'); call pa_inserirProduto ('Biofinty','Lente', 'Policarbonato Monofocal', 'Antiabrasivo Fotosensível', 250.00,'1 ano', '/imagemProdutos/lentes.jpg'); call pa_inserirProduto ('Acuvue','Lente', 'Policarbonato Monofocal', 'Antiabrasivo Fotosensível Antirreflexo', 320.00,'1 ano', '/imagemProdutos/lentes.jpg'); /* -- ESTOQUE*/ DELIMITER $$ drop procedure if exists pa_inserirEstoque $$ create Procedure pa_inserirEstoque ( $cd_produto int, $qt_estoque int ) main: begin insert into tbEstoque ( cd_produto, qt_estoque ) values ( $cd_produto, $qt_estoque ); end$$ DELIMITER ; call pa_inserirEstoque (1, 20); call pa_inserirEstoque (2, 60); call pa_inserirEstoque (3, 20); call pa_inserirEstoque (4, 100); call pa_inserirEstoque (5, 120); call pa_inserirEstoque (6, 150); call pa_inserirEstoque (7, 105); call pa_inserirEstoque (8, 300); call pa_inserirEstoque (9, 80); call pa_inserirEstoque (10, 70); call pa_inserirEstoque (11, 50); call pa_inserirEstoque (12, 60); call pa_inserirEstoque (13, 0); call pa_inserirEstoque (14, 0); call pa_inserirEstoque (15, 0); call pa_inserirEstoque (16, 60); call pa_inserirEstoque (17, 65); call pa_inserirEstoque (18, 115); call pa_inserirEstoque (19, 5); call pa_inserirEstoque (20, 160); call pa_inserirEstoque (21, 170); call pa_inserirEstoque (22, 200); call pa_inserirEstoque (23, 200); call pa_inserirEstoque (24, 200); call pa_inserirEstoque (25, 200); call pa_inserirEstoque (26, 200); call pa_inserirEstoque (27, 200); call pa_inserirEstoque (28, 200); call pa_inserirEstoque (29, 200); call pa_inserirEstoque (30, 200); call pa_inserirEstoque (31, 200); call pa_inserirEstoque (32, 198); call pa_inserirEstoque (33, 150); call pa_inserirEstoque (34, 200); call pa_inserirEstoque (35, 200); call pa_inserirEstoque (36, 200); call pa_inserirEstoque (37, 2); call pa_inserirEstoque (38, 50); call pa_inserirEstoque (39, 200); call pa_inserirEstoque (40, 200); call pa_inserirEstoque (41, 100); call pa_inserirEstoque (42, 100); /* -- PEDIDO*/ DELIMITER $$ drop procedure if exists pa_inserirPedido $$ create Procedure pa_inserirPedido( $cd_cliente int, $dt_pedido varchar(10) ) main: begin insert into tbPedido ( cd_cliente, dt_pedido ) values ( $cd_cliente, $dt_pedido ); end$$ DELIMITER ; call pa_inserirPedido (1, '20/08/2018'); call pa_inserirPedido (2, '05/09/2018'); call pa_inserirPedido (3, '06/05/2018'); /* -- PEDIDO ITENS*/ DELIMITER $$ drop procedure if exists pa_inserirPedidoItens $$ create Procedure pa_inserirPedidoItens( $cd_pedido int, $cd_produto int, $qt_item int ) main :begin insert into tbPedidoItens ( cd_pedido, cd_produto, qt_item, vl_subtotal ) values ( $cd_pedido, $cd_produto, $qt_item, (select vl_preco_unitario * $qt_item from tbProduto where cd_produto = $cd_produto) ); end$$ DELIMITER ; call pa_inserirPedidoItens (1, 2, 3); call pa_inserirPedidoItens (2, 3, 5); call pa_inserirPedidoItens (3, 1, 5); /* -- PEDIDO RECEITA*/ DELIMITER $$ drop procedure if exists pa_inserirPedidoReceita $$ create Procedure pa_inserirPedidoReceita($cd_pedido int, $cd_receita int) main: begin insert into tbPedidoReceita (cd_pedido, cd_receita) values ($cd_pedido, $cd_receita); end$$ DELIMITER ; call pa_inserirPedidoReceita (1, 1); call pa_inserirPedidoReceita (2, 2); call pa_inserirPedidoReceita (3, 3); -- call pa_exibirReceita; /* -- PAGAMENTO*/ DELIMITER $$ drop procedure if exists pa_inserirFormaPagamento $$ create Procedure pa_inserirFormaPagamento( $cd_pedido int, $tipo_pagamento varchar(255), $parcelamento varchar(40) ) main: begin insert into tbFormaPagamento (cd_pedido, tipo_pagamento, parcelamento, vl_total) values ($cd_pedido, $tipo_pagamento, $parcelamento, (select SUM(vl_subtotal)from tbPedidoItens where cd_pedido = $cd_pedido)); end$$ DELIMITER ; call pa_inserirFormaPagamento(1, '32105.12368 32145.25418 12365.321458 5 4120000201503', 'Á VISTA'); call pa_inserirFormaPagamento (2, 'JORGE-CARNEIRO 0231.2253.2158.5986 VISA 521 05/2020', '3'); call pa_inserirFormaPagamento (3, 'MARIA-VELOSO 9752.4250.8542.1452 MASTERCARD 852 10/2022', 'Á VISTA'); /* -- NOTIFICACAO*/ DELIMITER $$ drop procedure if exists pa_inserirNotificacao $$ create Procedure pa_inserirNotificacao( $cd_cliente int,$cd_produto int ) main: begin insert into tbProdutoNotificacao (cd_cliente, cd_produto) values ($cd_cliente, $cd_produto); end$$ DELIMITER ; call pa_inserirNotificacao (1, 1); call pa_inserirNotificacao (2, 2); call pa_inserirNotificacao (3, 3); /* -- CARRINHO*/ DELIMITER $$ drop procedure if exists pa_inserirCarrinhoCompra $$ create Procedure pa_inserirCarrinhoCompra ( $cd_produto int, $cd_cliente int, $qt_item int ) main: begin insert into tbCarrinhoCompra (cd_produto, cd_cliente, qt_item) values ($cd_produto, $cd_cliente, $qt_item); end$$ DELIMITER ; call pa_inserirCarrinhoCompra (1,1,10); call pa_inserirCarrinhoCompra (2,2,15); call pa_inserirCarrinhoCompra (3,3,15); -- CARRINHO RECEITA INSERIR---------------- DELIMITER $$ drop procedure if exists pa_inserirCarrinhoReceita $$ create Procedure pa_inserirCarrinhoReceita( $cd_cliente int, $cd_carrinho int, $cd_receita int ) main: begin insert into tbCarrinhoReceita (cd_cliente, cd_carrinho, cd_receita) values ($cd_cliente, $cd_carrinho, $cd_receita); end$$ DELIMITER ; -- call pa_inserirCarrinhoReceita(1, 2, 1)
true
a6f8493640d1267ce08b5251ce9d902c6a495b37
SQL
diegocarreto/ALO
/Start Back Up/noticia_3.sql
UTF-8
1,693
2.734375
3
[]
no_license
INSERT INTO blog ( Fecha, Titulo, Subtitulo, Fuente, Descripcion, Etiquetas, Url, Tipo, Imagen, Autor, Especies ) values ( convert(date, '18/05/2017 ', 104), 'Granja del Futuro', '', 'maltaCleyton', '<p>Estimado equipo Neovia México</p> <p>Les queremos compartir de un gran proyecto innovador de Neovia llamado “Granja del Futuro”, el cual nos permitirá construir el futuro de la agricultura y mejorar nuestra ventaja competitiva en temas de innovación, como <em>“agricultura inteligente”</em>. </p> <p>La única forma de tener éxito en un proyecto tan ambicioso es por medio de la colaboración. Por ello, acabamos de lanzar una <strong>convocatoria global</strong> para identificar a empresas, start-ups, expertos, en 3 áreas temáticas ("agricultura fácil", "agricultura de precisión", "agricultura sostenible") y 1 temática transversal (dimensión del proyecto) para en conjunto encontrar las soluciones requeridas para alimentar al mundo. </p> <p>Les invitamos a sumarse a nuestro proyecto, compartiendo y retransmitiendo esta información dentro de sus equipos, redes profesionales, redes sociales (<a href="https://www.linkedin.com/company-beta/10852870/" target="_blank"><i class="fa fa-linkedin-square"></i> Linkedin</a>, <a href="https://twitter.com/neovia_group/status/864108437860429826" target="_blank"><i class="fa fa-twitter"></i> Twitter</a>) o directamente haciendo referencia a la convocatoria de soluciones en nuestro sitio web Neovia.</p> <p>Les agradecemos su apoyo y participación.</p> <p><strong>El Comité Ejecutivo de Neovia.</strong></p>', 'Neovia|Noticias', '', 'noticias', 'Content/img/articulos/noticia-03.jpg', 'maltaCleyton', '|noticia_home|')
true
2174c36c7e46e09c6a1fd338b6d5f73d6de20ea2
SQL
will-malpass/msc_diss
/mysql_scripts/network_effects_gen_US.sql
UTF-8
4,669
4.25
4
[]
no_license
CREATE TABLE networks.us_connections AS SELECT sdb.games_2.steamid, sdb.friends.friend_since, sdb.friends.steamid_b, sdb.player_summaries.timecreated FROM sdb.games_2 INNER JOIN sdb.friends ON sdb.games_2.steamid=sdb.friends.steamid_a INNER JOIN sdb.player_summaries ON sdb.games_2.steamid=sdb.player_summaries.steamid WHERE sdb.player_summaries.loccountrycode = 'US' /*select country code*/ AND sdb.friends.friend_since BETWEEN '2009-01-01' AND '2015-12-12' /*friend data only available from 2009 onwards, connections before this are labelled as being made in 1970*/ AND sdb.player_summaries.timecreated BETWEEN '2009-01-01' AND '2015-12-12';/*cannot compute network effects for accounts created before 2009 - i.e. before friend connections could be pinned down to a specific date */ /*formatting DATETIME to DATE*/ ALTER TABLE networks.us_connections CHANGE timecreated timecreated DATE; ALTER TABLE networks.us_connections CHANGE friend_since friend_since DATE; /*generating connection delta, converting to days*/ ALTER TABLE networks.us_connections ADD friend_delta INT AS (friend_since-timecreated); ALTER TABLE networks.us_connections ADD delta_adj INT AS (friend_delta * 0.0365); /*condition for selecting existing friends, 3 weeks*/ ALTER TABLE networks.us_connections ADD friend_dummy INT AS (CASE WHEN networks.us_connections.delta_adj <22 THEN 1 ELSE 0 END); /* grouping by steam_id and tallying existing and new connections */ CREATE TABLE networks.us_existing AS SELECT steamid, timecreated, COUNT(friend_dummy) FROM networks.us_connections WHERE friend_dummy = '1' GROUP BY steamid; CREATE TABLE networks.us_new AS SELECT steamid, timecreated, COUNT(friend_dummy) FROM networks.us_connections WHERE friend_dummy = '0' GROUP BY steamid; ALTER TABLE `networks`.`us_existing` CHANGE COLUMN `COUNT(friend_dummy)` `existing_connections_count` BIGINT NOT NULL DEFAULT '0'; /*renaming columns to avoid later merge conflicts*/ ALTER TABLE `networks`.`us_new` CHANGE COLUMN `COUNT(friend_dummy)` `new_connections_count` BIGINT NOT NULL DEFAULT '0'; /*renaming columns to avoid later merge conflicts*/ /*merging connections together, keeping all obs*/ CREATE TABLE networks.us_tallies AS SELECT networks.us_existing.steamid, networks.us_existing.timecreated, networks.us_existing.existing_connections_count, networks.us_new.new_connections_count FROM networks.us_existing LEFT JOIN networks.us_new ON networks.us_existing.steamid=networks.us_new.steamid UNION SELECT networks.us_existing.steamid, networks.us_existing.timecreated, networks.us_existing.existing_connections_count, networks.us_new.new_connections_count FROM networks.us_existing RIGHT JOIN networks.us_new ON networks.us_existing.steamid=networks.us_new.steamid; ALTER TABLE networks.us_tallies ADD total_connections INT AS (new_connections_count+existing_connections_count); /*anti-join of friends and player_summaries - i.e. generating a table for users with no connections. CHANGE LOCCOUNTRYCODE FOR DIFFERENT COUNTRIES*/ CREATE TABLE networks.us_null AS SELECT sdb.player_summaries.steamid, sdb.player_summaries.timecreated FROM sdb.player_summaries WHERE sdb.player_summaries.steamid NOT IN ( SELECT sdb.friends.steamid_a FROM sdb.friends) AND player_summaries.loccountrycode = 'US' /*select country code*/ AND sdb.player_summaries.timecreated BETWEEN '2009-01-01' AND '2015-12-12'; /*cannot compute network effects for accounts created before 2009 - i.e. before friend connections could be pinned down to a specific date */ ALTER TABLE networks.us_null ADD total_connections INT AS (0), ADD existing_connections_count INT AS (0), ADD new_connections_count INT AS (0); /*anti-join of groups and player_summaries - i.e. generating a table for users with no group connections. CHANGE LOCCOUNTRY CODE FOR DIFFERENT COUNTRIES*/ CREATE TABLE networks.us_null_groups AS SELECT sdb.player_summaries.steamid, sdb.player_summaries.timecreated FROM sdb.player_summaries WHERE sdb.player_summaries.steamid NOT IN ( SELECT sdb.groups.steamid FROM sdb.groups) AND player_summaries.loccountrycode = 'US' /*select country code*/ AND sdb.player_summaries.timecreated BETWEEN '2009-01-01' AND '2015-12-12'; /*cannot compute network effects for accounts created before 2009 - i.e. before friend connections could be pinned down to a specific date */ ALTER TABLE networks.us_null_groups ADD group_connections INT AS (0); /*MISC*/ /* innodb_buffer_pool_size needs to be set much higher for this operation (set to 1024M in config file)*/
true
b127cad2ac164a3b817a8bcd2628ec2ffe7bd1bf
SQL
Rajeshbhartia/ComputerStoreWebsite
/db file/notebook_description.sql
UTF-8
2,567
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 17, 2015 at 09:54 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `database_1` -- -- -------------------------------------------------------- -- -- Table structure for table `notebook_description` -- CREATE TABLE IF NOT EXISTS `notebook_description` ( `id` int(255) NOT NULL, `name` varchar(100) NOT NULL, `brand` varchar(100) NOT NULL, `model` varchar(100) NOT NULL, `ram` varchar(100) NOT NULL, `display_Size` varchar(100) NOT NULL, `display_type` varchar(100) NOT NULL, `graphics_chipset` varchar(100) NOT NULL, `battary` varchar(100) NOT NULL, `backup_time` varchar(100) NOT NULL, `weight` varchar(100) NOT NULL, `color` varchar(100) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1; -- -- Dumping data for table `notebook_description` -- INSERT INTO `notebook_description` (`id`, `name`, `brand`, `model`, `ram`, `display_Size`, `display_type`, `graphics_chipset`, `battary`, `backup_time`, `weight`, `color`) VALUES (1, 'Acer Aspire E5-411', 'nzjcn', 'dasd', 'dsad', 'cdcsd', 'dsada', 'sadasd', 'dsadsa', '', 'dsds', 'sdasd'), (11, 'Acer Aspire E5-411 PQC N3540 28000', '', 'acer', '', '', '', '', '', '', '', ''), (12, 'Asus X200MA Intel PQC N3540 28000', 'Asus', ' X200MA', '4 GB', '14.4 inch', 'LED', 'INTEL 4400', '4 cell', '5 hour', '2 kg', 'pink'), (13, 'hp-elitebook', 'hp', '8460w', '4 GB', '14.4 inch', 'LED', 'INTEL 4400', '4 cell', '5 hour', '2 kg', 'silver'), (14, 'Dell XPS 13z i5 ULTRA BOOK', 'dell', 'Dell XPS 13z i5 ULTRA BOOK', '4 GB', '13.3 inch', 'LED', 'Intel® HD 3000 graphics', '6 cell', '47 whr', '1.3kg', 'silver'); -- -- Indexes for dumped tables -- -- -- Indexes for table `notebook_description` -- ALTER TABLE `notebook_description` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `notebook_description` -- ALTER TABLE `notebook_description` MODIFY `id` int(255) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=15; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
d48266fe1ebe247620aa9dc43fc8d6aae7a55488
SQL
flexagon9/demo
/SQLServer/Create_stores.sql
UTF-8
379
3.265625
3
[]
no_license
if not exists (select * from sys.tables t join sys.schemas s on (t.schema_id = s.schema_id) where s.name = 'sales' and t.name = 'stores') CREATE TABLE sales.stores ( store_id INT IDENTITY (1, 1) PRIMARY KEY, store_name VARCHAR (255) NOT NULL, phone VARCHAR (25), email VARCHAR (255), street VARCHAR (255), city VARCHAR (255), state VARCHAR (10), zip_code VARCHAR (5) );
true
12d5c6ec10a50ee017b4c24350c09484e9c64d05
SQL
donald-strong/Dragonpark
/DragonPark/src/main/resources/schema.sql
UTF-8
1,388
3.046875
3
[]
no_license
create table parking_rate ( id int primary key auto_increment, rate_name varchar(50) not null, rate varchar(20) not null, type varchar(50) not null, entry_condition varchar(50) not null, exit_condition varchar(50) not null, primary key (id) ); create table standard_rate_period ( id int primary key auto_increment, rate_name varchar(50) not null, description varchar(255) not null, start_hours integer, end_hours integer, multi_day boolean, primary key (id) ); create table flat_rate_period ( id int primary key auto_increment, rate_name varchar(50) not null, description varchar(255) not null, entry_day varchar(10) not null, entry_start varchar(10) not null, entry_end varchar(10) not null, exit_day varchar(10) not null, exit_start varchar(10) not null, exit_end varchar(10) not null, primary key (id) ); create table parking_event ( id int primary key auto_increment, entry_date varchar(50) not null, exit_date varchar(50) not null, rate varchar(20) not null, rate_name varchar(50) not null, primary key (id) );
true
fc44215093d24d77a3d3ea87a4564b84702ea3e3
SQL
kongyew/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/resync/sql/skip/resync_heap_alter_part_exchange_partrange.sql
UTF-8
4,696
3.21875
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "LicenseRef-scancode-other-copyleft", "metamail", "BSD-3-Clause", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-permissive", "ISC", "Python-2.0", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scanco...
permissive
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- RESYNC HEAP TABLE 1 -- CREATE TABLE resync_heap_alter_part_exchange_partrange1 ( unique1 int4, unique2 int4 ) partition by range (unique1) ( partition aa start (0) end (500) every (100), default partition default_part ); CREATE TABLE resync_heap_alter_part_exchange_partrange1_A ( unique1 int4, unique2 int4) ; -- -- Insert few records into the table -- insert into resync_heap_alter_part_exchange_partrange1 values ( generate_series(5,50),generate_series(15,60)); insert into resync_heap_alter_part_exchange_partrange1_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from resync_heap_alter_part_exchange_partrange1; -- -- RESYNC HEAP TABLE 2 -- CREATE TABLE resync_heap_alter_part_exchange_partrange2 ( unique1 int4, unique2 int4 ) partition by range (unique1) ( partition aa start (0) end (500) every (100), default partition default_part ); CREATE TABLE resync_heap_alter_part_exchange_partrange2_A ( unique1 int4, unique2 int4) ; -- -- Insert few records into the table -- insert into resync_heap_alter_part_exchange_partrange2 values ( generate_series(5,50),generate_series(15,60)); insert into resync_heap_alter_part_exchange_partrange2_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from resync_heap_alter_part_exchange_partrange2; -- -- RESYNC HEAP TABLE 3 -- CREATE TABLE resync_heap_alter_part_exchange_partrange3 ( unique1 int4, unique2 int4 ) partition by range (unique1) ( partition aa start (0) end (500) every (100), default partition default_part ); CREATE TABLE resync_heap_alter_part_exchange_partrange3_A ( unique1 int4, unique2 int4) ; -- -- Insert few records into the table -- insert into resync_heap_alter_part_exchange_partrange3 values ( generate_series(5,50),generate_series(15,60)); insert into resync_heap_alter_part_exchange_partrange3_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from resync_heap_alter_part_exchange_partrange3; -- -- ALTER SYNC1 HEAP -- -- -- ALTER PARTITION TABLE EXCHANGE PARTITION RANGE -- alter table sync1_heap_alter_part_exchange_partrange6 exchange partition for (rank(1)) with table sync1_heap_alter_part_exchange_partrange6_A; -- -- Insert few records into the table -- insert into sync1_heap_alter_part_exchange_partrange6 values ( generate_series(5,50),generate_series(15,60)); insert into sync1_heap_alter_part_exchange_partrange6_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from sync1_heap_alter_part_exchange_partrange6; -- -- ALTER CK_SYNC1 HEAP -- -- -- ALTER PARTITION TABLE EXCHANGE PARTITION RANGE -- alter table ck_sync1_heap_alter_part_exchange_partrange5 exchange partition for (rank(1)) with table ck_sync1_heap_alter_part_exchange_partrange5_A; -- -- Insert few records into the table -- insert into ck_sync1_heap_alter_part_exchange_partrange5 values ( generate_series(5,50),generate_series(15,60)); insert into ck_sync1_heap_alter_part_exchange_partrange5_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from ck_sync1_heap_alter_part_exchange_partrange5; -- -- ALTER CT HEAP -- -- -- ALTER PARTITION TABLE EXCHANGE PARTITION RANGE -- alter table ct_heap_alter_part_exchange_partrange3 exchange partition for (rank(1)) with table ct_heap_alter_part_exchange_partrange3_A; -- -- Insert few records into the table -- insert into ct_heap_alter_part_exchange_partrange3 values ( generate_series(5,50),generate_series(15,60)); insert into ct_heap_alter_part_exchange_partrange3_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from ct_heap_alter_part_exchange_partrange3; -- -- ALTER RESYNC HEAP -- -- -- ALTER PARTITION TABLE EXCHANGE PARTITION RANGE -- alter table resync_heap_alter_part_exchange_partrange1 exchange partition for (rank(1)) with table resync_heap_alter_part_exchange_partrange1_A; -- -- Insert few records into the table -- insert into resync_heap_alter_part_exchange_partrange1 values ( generate_series(5,50),generate_series(15,60)); insert into resync_heap_alter_part_exchange_partrange1_A values ( generate_series(1,10),generate_series(21,30)); -- -- select from the Table -- select count(*) from resync_heap_alter_part_exchange_partrange1;
true
6a5ea154625d5af4ae3482973055b5bafd4fcd6a
SQL
dmKronenberg/DS_BOS_07_Students
/MishaHerscu/HW_01/question_01/misha_herscu_hw_1_query_01.sql
UTF-8
565
3.5
4
[]
no_license
-- 1. Triple Crown Award Winners SELECT m.namefirst, m.namelast, ap.awardID, ap.yearID, b.H/b.AB AS batting_average, b.RBI, b.HR, b.AB, b.R, b.H, b.2B, b.3B, b.SB, b.CS, b.BB, b.SO, b.IBB, b.HBP, b.SH, b.SF, b.GIDP, b.G_Old FROM baseball.awardsplayers ap JOIN baseball.batting b ON ( ap.playerID = b.playerID AND ap.yearID = b.yearID ) JOIN baseball.master m ON ap.playerID = m.playerID WHERE ap.awardID = 'Triple Crown' ORDER BY b.h/b.ab DESC, b.RBI DESC, b.HR DESC;
true
b2e1f241596b04a86a0634949e6438d049335fb2
SQL
rafiyajaved/CPK-queries
/aggregate_our_data_w_cpdp.sql
UTF-8
1,567
3.234375
3
[]
no_license
WITH cpdp_updated as (SELECT *, lower(last_name) as l_name, lower(first_name) as f_name, FROM `linear-stock-314817.invisinsitute_chicago_police_data.accused_updated_aggregated`), team_spreadsheet as (SELECT *, lower(split(cop_name, " ")[OFFSET(0)]) as f_name, lower(split(cop_name, " ")[OFFSET(1)]) as l_name, FROM `linear-stock-314817.invisinsitute_chicago_police_data.our_data`) SELECT cop_name, num_murders, Year_hired, Year_of_Birth, Latest_Star_Number, team_spreadsheet.Race as team_race, cpdp_updated.Race as cpdp_race, sex, gender as cpdp_gender, still_on_force, team_spreadsheet.current_unit as team_current_unit, cpdp_updated.past_units as cpdp_past_units, latest_base_salary, hr_salaries, cpdp_updated.appointed_data as cpdp_appointed_date, cpdp_updated.birth_year as cpdp_birth_year, cpdp_updated.current_age as cpdp_current_age, cpdp_updated.ranks_held as cpdp_ranks_held, cpdp_updated.current_star as cpdp_current_star, cpdp_updated.current_status as cpdp_current_status, cpdp_updated.resignation_date as cpdp_resignation_date, cpdp_updated.resignation_year as cpdp_resignation_year, cpdp_updated.unit_description as cpdp_unit_description, cpdp_updated.complaint_category as cpdp_complaint_category, cpdp_updated.complaint_code as cpdp_complaint_code, cpdp_updated.cr_id as cpdp_cr_id, cpdp_updated.final_finding as cpdp_final_finding, cpdp_updated.final_outcome as cpdp_final_outcome, cpdp_updated.recc_finding as cpdp_recc_finding, cpdp_updated.recc_outcome as cpdp_rec_outcome FROM cpdp_updated JOIN team_spreadsheet USING(f_name, l_name)
true
bc21699d4fd197adacc3ae690611bf8e497022a0
SQL
cskiwi/ws1-creations
/Webscripten2/Labo1/todo.sql
UTF-8
1,802
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 19, 2012 at 02:05 PM -- Server version: 5.5.25 -- PHP Version: 5.4.4 DROP DATABASE IF EXISTS `todo`; CREATE DATABASE `todo` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE `todo`; SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `todo` -- -- -------------------------------------------------------- -- -- Table structure for table `todolist` -- DROP TABLE IF EXISTS `todolist`; CREATE TABLE `todolist` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `what` varchar(255) NOT NULL, `priority` enum('high','normal','low') NOT NULL, `added_on` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `todolist` -- INSERT INTO `todolist` (`id`, `user_id`, `what`, `priority`, `added_on`) VALUES (1, 1, 'A very urgent task', 'high', '2012-12-03 13:56:08'), (2, 1, 'A normal priority task', 'normal', '2012-12-03 13:56:08'), (3, 1, 'A low priority task', 'low', '2012-12-03 13:56:08'), (4, 2, 'A very urgent task', 'high', '2012-12-19 13:56:08'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `password`) VALUES (1, 'bramus', '$1$WcKBgQfa$41VRSoNdRrllVs9DyqQHV/'), (2, 'rogier', '$1$TG/Jg8M4$WGWLZQTIUyEsdGWhBWzLy0');
true
a710f39173416ccdf1b0ea71279435f97ef3fa21
SQL
comproro/gawi
/gawibawibo/gamequery.sql
UTF-8
1,087
2.859375
3
[]
no_license
select * from game; /*Table structure for table `game` */ drop table game; CREATE TABLE `game` ( `id` int(11) NOT NULL AUTO_INCREMENT, `choice` int(11) NOT NULL, `computerChoice` int(11) NOT NULL, `judgement` varchar(50) NOT NULL, `datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; /*Data for the table `game` */ insert into `game` values (1,1,1,'비겼습니다.','2012-03-06 06:49:57'),(2,2,2,'비겼습니다.','2012-03-06 06:50:00'), (3,0,1,'컴퓨터가 이겼습니다.','2012-03-06 06:52:34'),(4,1,2,'컴퓨터가 이겼습니다.','2012-03-06 08:19:26'), (5,0,1,'컴퓨터가 이겼습니다.','2012-03-06 08:20:06'),(6,1,0,'당신이 이겼습니다.','2012-03-06 08:20:13'); /*Table structure for table `simple_information` */ CREATE TABLE `simple_information` ( `info_id` int(11) DEFAULT NULL, `info_content` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `simple_information` */
true
88e05d7033ee99cf282505cfcf7a02472e01f70a
SQL
RashidMaulana/tubes_psi
/tubes_psi.sql
UTF-8
24,915
2.703125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 04, 2021 at 09:34 AM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `tubes_psi` -- -- -------------------------------------------------------- -- -- Table structure for table `destinations` -- CREATE TABLE `destinations` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `telephone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `pemiliks_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `destinations` -- INSERT INTO `destinations` (`id`, `nama`, `alamat`, `telephone`, `pemiliks_id`) VALUES (1, 'sit', '6250 Margarita Overpass Apt. 116\nToyport, NH 40161', '+1-912-965-2624', 3), (2, 'nostrum', '145 Shaun Hollow Apt. 837\nSouth Nasir, KY 08837', '+1-689-431-7706', 6), (3, 'qui', '5355 Strosin Wall Apt. 889\nMurazikton, FL 61100-0064', '1-636-626-2800', 4), (4, 'excepturi', '61407 Brakus Haven\nSouth Garret, NE 82156-3813', '952-666-4078', 5), (5, 'qui', '5357 Herman Ports\nWest Hettie, MT 93260', '1-458-887-9341', 4), (6, 'ullam', '11957 Legros River\nLake Vinceborough, AZ 37298-7214', '1-640-358-4343', 2), (7, 'ipsum', '243 Kamron Forge\nNew Kayley, NM 54158-2877', '(847) 369-5214', 2), (8, 'vel', '72396 Dietrich Lakes Apt. 868\nWeimannmouth, KY 02000', '+1 (936) 460-0742', 7), (9, 'et', '4933 Bashirian Common Apt. 822\nPort Romaineville, OH 58613-8986', '1-909-697-1446', 1), (10, 'ea', '71621 Moore Plaza\nQuigleyfurt, MN 92620-8041', '1-904-488-6890', 9); -- -------------------------------------------------------- -- -- Table structure for table `facilities` -- CREATE TABLE `facilities` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `jumlah` int(11) NOT NULL, `destinations_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `facilities` -- INSERT INTO `facilities` (`id`, `nama`, `jumlah`, `destinations_id`) VALUES (1, 'omnis', 7, 1), (2, 'dolorem', 2, 2), (3, 'non', 8, 9), (4, 'sed', 9, 8), (5, 'vero', 2, 8), (6, 'id', 7, 2), (7, 'aut', 2, 6), (8, 'explicabo', 1, 10), (9, 'ut', 8, 7), (10, 'ex', 9, 2), (11, 'asperiores', 3, 4), (12, 'iste', 5, 1), (13, 'incidunt', 1, 2), (14, 'quia', 2, 9), (15, 'consequatur', 1, 5), (16, 'et', 3, 4), (17, 'fuga', 5, 9), (18, 'recusandae', 6, 7), (19, 'excepturi', 5, 9), (20, 'sapiente', 9, 4), (21, 'asperiores', 3, 5), (22, 'omnis', 9, 3), (23, 'quas', 9, 10), (24, 'vel', 1, 8), (25, 'sequi', 9, 3), (26, 'quam', 8, 10), (27, 'animi', 7, 10), (28, 'suscipit', 4, 1), (29, 'sed', 1, 8), (30, 'omnis', 7, 1), (31, 'rerum', 4, 1), (32, 'nesciunt', 9, 4), (33, 'accusantium', 8, 3), (34, 'quia', 9, 7), (35, 'dolore', 4, 3), (36, 'assumenda', 3, 2), (37, 'vel', 4, 3), (38, 'facilis', 7, 6), (39, 'dolorum', 1, 6), (40, 'doloribus', 4, 10), (41, 'cupiditate', 4, 8), (42, 'ipsam', 4, 8), (43, 'inventore', 3, 1), (44, 'fugit', 6, 6), (45, 'repudiandae', 5, 7), (46, 'id', 4, 4), (47, 'est', 6, 2), (48, 'laudantium', 10, 8), (49, 'itaque', 6, 6), (50, 'nihil', 8, 4); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_100000_create_password_resets_table', 1), (2, '2019_08_19_000000_create_failed_jobs_table', 1), (3, '2021_06_21_130427_create_destinations_table', 1), (4, '2021_06_21_130441_create_facilities_table', 1), (5, '2021_06_21_130515_create_visitors_table', 1), (6, '2021_06_21_130557_create_transactions_table', 1), (7, '2021_06_21_135530_create_pemiliks', 1), (8, '2021_06_23_043508_add_column_to_facilities_table', 1), (9, '2021_06_23_043635_add_column_to_transactions_table', 1), (10, '2021_06_23_044418_add_column_to_destinations_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `pemiliks` -- CREATE TABLE `pemiliks` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `pemiliks` -- INSERT INTO `pemiliks` (`id`, `nama`, `alamat`, `email`, `username`, `password`) VALUES (1, 'Miss Rosanna White DDS', '590 Howe Cove\nWest Earnestine, OK 41659', 'tomas88@gmail.com', 'anastacio.mcdermott', '$2y$10$cGa.wH/26MJk8ksinxf75Oa5maWoUp5hQ.fvPPbZM6YCJDe0WT0hS'), (2, 'Crystal Fay', '30840 Conroy Spurs Suite 096\nBelleville, MT 01157-9374', 'leta.little@yahoo.com', 'queen.goyette', '$2y$10$32GhPEi8/qQS0QhhQjDR3OhCWhUSmQZoC/FvkzEP9kRVShmFbCtde'), (3, 'Rosella Stokes', '81790 Hartmann Prairie\nKayceebury, WY 68993-3738', 'sebastian91@gmail.com', 'khilpert', '$2y$10$HMN1DBzqDHXWDEPwbrHs/.UVN9K9uTsq8YkLE1J3q4uslBSeIYS8.'), (4, 'Alexandrea Frami', '37029 Kaelyn Mountains Apt. 720\nNorth Annabel, WI 27021-2443', 'ypfeffer@hotmail.com', 'adams.merlin', '$2y$10$wANaQhYsQdePVkFlpW/s0OPmTj4MhlB3//NnEicSVJa5L26zQxoSm'), (5, 'Markus Keeling', '855 Cortney Oval\nWizafurt, DC 80215-5405', 'shaniya05@gmail.com', 'ewintheiser', '$2y$10$hVjYP47xAcjeW.lgfV2bL.364275LBlwD9fL4ZAZpS.7ypLiunF/a'), (6, 'Ms. Addie Osinski Sr.', '811 Wintheiser Lane\nEast Sabrinaland, SD 20269-1743', 'reichel.royal@erdman.com', 'akutch', '$2y$10$Op3.6GhDmQ0.qA0hDWkJLu0qWuFOXEkRZO1dE2jurtSFT/uejnqES'), (7, 'Braulio Ernser', '8987 Cronin Bypass\nEast Arielleberg, MI 44098-2716', 'schmidt.rex@yahoo.com', 'hollis.muller', '$2y$10$JqLXKbz3XJTgy2.uhdc0eOno3wlaE9cAwCQ/oGGHO26a1Tl4kEvGa'), (8, 'Mrs. Claudie Spinka II', '8395 Welch Port\nRolfsonland, NE 81836', 'gregg68@russel.com', 'jessie.cassin', '$2y$10$t0zy05DKZjx4sTMVMydkX.YStKz/AMLWVF4S6kyCwhyjCnLghdX4e'), (9, 'Steve Bradtke', '385 Maddison Causeway\nNew Tierrashire, NE 59056', 'bogisich.cooper@gmail.com', 'fcormier', '$2y$10$jP5xJHpQSbJ4l2S5J9x8rOflE6Pu2g64zwUxol7nzvh5vEngWd5QS'), (10, 'Valentine Lemke', '90310 Roob Ridges Apt. 218\nPort Devyn, IN 13649-5668', 'kertzmann.verona@yahoo.com', 'rene.kulas', '$2y$10$kf1LxIbRMbBtsF8K53jEjuqQ0EAoZ5RyO7lrYec/cJ4.qf.nclvDC'); -- -------------------------------------------------------- -- -- Table structure for table `transactions` -- CREATE TABLE `transactions` ( `id` bigint(20) UNSIGNED NOT NULL, `profits` bigint(20) NOT NULL, `tanggal` date NOT NULL, `facilities_id` bigint(20) UNSIGNED NOT NULL, `visitors_id` bigint(20) UNSIGNED NOT NULL, `bulan` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `transactions` -- INSERT INTO `transactions` (`id`, `profits`, `tanggal`, `facilities_id`, `visitors_id`, `bulan`) VALUES (2, 57429, '2021-03-23', 9, 7, 'March'), (3, 55829, '2021-02-20', 1, 37, 'February'), (4, 46935, '2021-02-28', 10, 43, 'February'), (5, 40697, '2021-05-19', 22, 13, 'May'), (6, 17976, '2021-01-06', 17, 23, 'January'), (7, 48108, '2021-06-21', 40, 37, 'June'), (8, 70214, '2021-04-04', 38, 33, 'April'), (9, 67444, '2021-04-03', 50, 18, 'April'), (10, 72460, '2021-04-12', 31, 30, 'April'), (11, 98908, '2021-01-31', 21, 25, 'January'), (12, 71528, '2021-04-11', 13, 33, 'April'), (13, 45191, '2021-05-27', 34, 43, 'May'), (14, 96067, '2021-05-01', 10, 20, 'May'), (15, 74512, '2021-02-26', 24, 8, 'February'), (16, 97512, '2021-05-15', 9, 8, 'May'), (17, 23899, '2021-01-22', 24, 46, 'January'), (18, 11362, '2021-03-22', 38, 27, 'March'), (19, 49534, '2021-03-05', 45, 38, 'March'), (20, 92434, '2021-04-28', 28, 5, 'April'), (21, 79359, '2021-04-01', 18, 39, 'April'), (22, 52808, '2021-01-04', 33, 31, 'January'), (23, 31786, '2021-03-04', 19, 12, 'March'), (24, 50038, '2021-02-03', 42, 19, 'February'), (25, 29104, '2021-03-25', 25, 5, 'March'), (26, 52291, '2021-01-17', 28, 32, 'January'), (27, 55272, '2021-01-14', 23, 45, 'January'), (28, 18281, '2021-06-19', 41, 20, 'June'), (29, 62692, '2021-04-14', 21, 6, 'April'), (30, 91231, '2021-03-26', 29, 2, 'March'), (31, 23788, '2021-05-28', 16, 15, 'May'), (32, 25812, '2021-04-19', 24, 34, 'April'), (33, 66186, '2021-02-19', 50, 21, 'February'), (34, 42164, '2021-02-10', 39, 18, 'February'), (35, 83240, '2021-02-10', 3, 50, 'February'), (36, 34997, '2021-04-12', 32, 22, 'April'), (37, 75472, '2021-02-26', 23, 2, 'February'), (38, 95109, '2021-03-21', 20, 36, 'March'), (39, 88281, '2021-02-21', 47, 8, 'February'), (40, 93308, '2021-01-01', 26, 30, 'January'), (41, 68126, '2021-04-24', 28, 5, 'April'), (42, 88247, '2021-03-21', 33, 1, 'March'), (43, 85331, '2021-04-09', 40, 32, 'April'), (44, 34773, '2021-06-07', 19, 1, 'June'), (45, 81769, '2021-02-15', 31, 9, 'February'), (46, 80855, '2021-04-25', 30, 33, 'April'), (47, 22493, '2021-01-21', 4, 36, 'January'), (48, 25366, '2021-04-09', 30, 18, 'April'), (49, 36178, '2021-03-10', 42, 15, 'March'), (50, 26136, '2021-01-02', 31, 12, 'January'), (51, 45036, '2021-04-13', 45, 26, 'April'), (52, 91127, '2021-03-08', 28, 8, 'March'), (53, 56530, '2021-03-21', 37, 42, 'March'), (54, 22575, '2021-01-09', 17, 22, 'January'), (55, 68342, '2021-02-02', 47, 10, 'February'), (56, 13848, '2021-05-03', 19, 24, 'May'), (57, 61397, '2021-02-20', 36, 21, 'February'), (58, 69385, '2021-03-03', 39, 49, 'March'), (59, 55520, '2021-01-06', 2, 27, 'January'), (60, 34690, '2021-04-29', 46, 46, 'April'), (61, 54454, '2021-04-13', 39, 31, 'April'), (62, 80453, '2021-06-21', 14, 14, 'June'), (63, 28895, '2021-05-01', 21, 36, 'May'), (64, 63245, '2021-04-03', 37, 8, 'April'), (65, 44089, '2021-02-02', 8, 30, 'February'), (66, 67949, '2021-04-28', 37, 4, 'April'), (67, 47398, '2021-03-15', 14, 11, 'March'), (68, 83975, '2021-01-29', 39, 24, 'January'), (69, 45014, '2021-04-28', 15, 42, 'April'), (70, 34369, '2021-05-25', 14, 6, 'May'), (71, 40305, '2021-02-10', 20, 9, 'February'), (72, 60912, '2021-05-16', 42, 16, 'May'), (73, 39004, '2021-05-15', 9, 19, 'May'), (74, 35522, '2021-05-25', 28, 25, 'May'), (75, 27720, '2021-05-19', 23, 35, 'May'), (76, 37822, '2021-03-21', 15, 8, 'March'), (77, 79896, '2021-03-30', 18, 44, 'March'), (78, 92605, '2021-05-07', 35, 30, 'May'), (79, 38792, '2021-01-22', 18, 27, 'January'), (80, 71941, '2021-01-01', 40, 5, 'January'), (81, 11729, '2021-04-19', 9, 28, 'April'), (82, 91577, '2021-04-08', 34, 7, 'April'), (83, 42775, '2021-06-09', 19, 37, 'June'), (84, 91303, '2021-04-04', 16, 33, 'April'), (85, 35677, '2021-03-24', 7, 34, 'March'), (86, 45184, '2021-03-21', 9, 2, 'March'), (87, 65493, '2021-02-07', 26, 43, 'February'), (88, 94181, '2021-04-26', 4, 7, 'April'), (89, 75316, '2021-01-17', 14, 45, 'January'), (90, 31102, '2021-05-04', 17, 6, 'May'), (91, 44858, '2021-06-05', 42, 10, 'June'), (92, 84257, '2021-04-01', 46, 35, 'April'), (93, 89342, '2021-01-31', 24, 48, 'January'), (94, 84499, '2021-01-25', 45, 17, 'January'), (95, 83571, '2021-02-20', 28, 22, 'February'), (96, 11677, '2021-01-17', 47, 46, 'January'), (97, 62882, '2021-06-24', 20, 10, 'June'), (98, 60898, '2021-06-22', 3, 26, 'June'), (99, 57286, '2021-05-26', 24, 33, 'May'), (100, 34017, '2021-03-14', 32, 8, 'March'), (101, 90213, '2021-05-01', 9, 49, 'May'), (102, 49086, '2021-06-04', 29, 49, 'June'), (103, 16332, '2021-03-03', 34, 35, 'March'), (104, 26330, '2021-05-20', 38, 10, 'May'), (105, 67744, '2021-01-04', 13, 47, 'January'), (106, 88910, '2021-05-30', 21, 9, 'May'), (107, 12653, '2021-06-11', 39, 9, 'June'), (108, 73692, '2021-01-22', 24, 29, 'January'), (109, 66975, '2021-03-18', 15, 34, 'March'), (110, 37826, '2021-01-01', 24, 36, 'January'), (111, 41543, '2021-03-17', 46, 28, 'March'), (112, 34557, '2021-03-24', 44, 20, 'March'), (113, 18560, '2021-01-07', 19, 23, 'January'), (114, 46482, '2021-02-25', 13, 26, 'February'), (115, 99375, '2021-01-26', 50, 45, 'January'), (116, 64417, '2021-05-13', 49, 30, 'May'), (117, 84950, '2021-03-24', 10, 25, 'March'), (118, 56452, '2021-05-29', 42, 31, 'May'), (119, 32641, '2021-01-18', 5, 44, 'January'), (120, 95655, '2021-03-08', 40, 42, 'March'), (121, 38720, '2021-06-11', 2, 45, 'June'), (122, 77933, '2021-02-08', 49, 9, 'February'), (123, 69358, '2021-01-11', 49, 36, 'January'), (124, 16908, '2021-02-04', 22, 22, 'February'), (125, 32074, '2021-01-09', 46, 8, 'January'), (126, 74617, '2021-03-30', 49, 19, 'March'), (127, 10457, '2021-03-07', 18, 44, 'March'), (128, 99513, '2021-06-05', 30, 47, 'June'), (129, 82786, '2021-04-15', 23, 7, 'April'), (130, 43995, '2021-04-08', 6, 41, 'April'), (131, 56940, '2021-03-29', 47, 41, 'March'), (132, 33621, '2021-01-31', 10, 43, 'January'), (133, 56579, '2021-05-14', 19, 15, 'May'), (134, 10399, '2021-05-11', 13, 45, 'May'), (135, 32255, '2021-01-14', 2, 24, 'January'), (136, 41535, '2021-05-02', 44, 12, 'May'), (137, 54254, '2021-05-18', 47, 7, 'May'), (138, 52562, '2021-01-04', 44, 12, 'January'), (139, 91239, '2021-06-07', 20, 40, 'June'), (140, 33634, '2021-06-04', 25, 27, 'June'), (141, 99308, '2021-02-25', 20, 36, 'February'), (142, 34470, '2021-05-08', 27, 46, 'May'), (143, 26115, '2021-04-14', 19, 49, 'April'), (144, 65085, '2021-04-08', 16, 36, 'April'), (145, 22705, '2021-02-09', 47, 27, 'February'), (146, 29037, '2021-01-23', 20, 44, 'January'), (147, 15356, '2021-02-28', 27, 40, 'February'), (148, 58840, '2021-02-19', 45, 35, 'February'), (149, 88106, '2021-04-19', 40, 41, 'April'), (150, 12805, '2021-06-02', 38, 27, 'June'), (151, 43050, '2021-01-24', 24, 50, 'January'), (152, 38669, '2021-02-15', 15, 5, 'February'), (153, 60929, '2021-04-07', 50, 5, 'April'), (154, 82489, '2021-05-07', 36, 8, 'May'), (155, 75855, '2021-04-14', 16, 50, 'April'), (156, 86435, '2021-06-22', 28, 40, 'June'), (157, 45019, '2021-04-21', 21, 49, 'April'), (158, 24698, '2021-03-14', 21, 26, 'March'), (159, 11695, '2021-06-04', 28, 22, 'June'), (160, 73382, '2021-03-20', 28, 43, 'March'), (161, 88057, '2021-04-10', 47, 38, 'April'), (162, 18921, '2021-05-03', 12, 43, 'May'), (163, 21966, '2021-03-06', 35, 45, 'March'), (164, 20958, '2021-02-08', 25, 12, 'February'), (165, 93548, '2021-01-16', 45, 4, 'January'), (166, 94859, '2021-01-14', 46, 32, 'January'), (167, 16875, '2021-02-02', 40, 32, 'February'), (168, 83709, '2021-04-14', 16, 26, 'April'), (169, 16140, '2021-02-08', 34, 39, 'February'), (170, 25459, '2021-05-29', 31, 25, 'May'), (171, 96018, '2021-02-04', 47, 31, 'February'), (172, 99665, '2021-01-14', 11, 45, 'January'), (173, 20437, '2021-03-03', 3, 33, 'March'), (174, 20322, '2021-06-16', 3, 10, 'June'), (175, 72522, '2021-02-11', 29, 41, 'February'), (176, 14991, '2021-03-11', 30, 6, 'March'), (177, 97135, '2021-02-10', 28, 36, 'February'), (178, 74415, '2021-05-07', 48, 48, 'May'), (179, 24092, '2021-02-16', 6, 22, 'February'), (180, 91676, '2021-01-09', 45, 20, 'January'), (181, 76425, '2021-05-27', 25, 17, 'May'), (182, 33616, '2021-02-19', 33, 10, 'February'), (183, 80238, '2021-03-13', 36, 3, 'March'), (184, 15602, '2021-03-21', 46, 37, 'March'), (185, 10930, '2021-02-19', 18, 18, 'February'), (186, 12659, '2021-03-08', 32, 2, 'March'), (187, 11606, '2021-04-23', 25, 11, 'April'), (188, 87663, '2021-01-12', 11, 40, 'January'), (189, 54483, '2021-06-03', 13, 23, 'June'), (190, 88463, '2021-05-09', 21, 39, 'May'), (191, 75941, '2021-03-11', 21, 3, 'March'), (192, 47515, '2021-02-13', 33, 30, 'February'), (193, 43293, '2021-05-07', 16, 6, 'May'), (194, 97313, '2021-03-04', 37, 34, 'March'), (195, 32182, '2021-02-09', 10, 34, 'February'), (196, 14672, '2021-03-18', 23, 15, 'March'), (197, 53465, '2021-01-06', 21, 8, 'January'), (198, 67265, '2021-05-19', 5, 25, 'May'), (199, 27356, '2021-05-10', 30, 44, 'May'), (200, 31297, '2021-05-14', 15, 9, 'May'), (201, 60978, '2021-01-25', 29, 8, 'January'); -- -------------------------------------------------------- -- -- Table structure for table `visitors` -- CREATE TABLE `visitors` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `usia` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `visitors` -- INSERT INTO `visitors` (`id`, `nama`, `alamat`, `usia`) VALUES (1, 'Brigitte Gleichner', '23816 Laron Ports Apt. 829\nJannieburgh, AK 15834-3510', 46), (2, 'Cecelia Jaskolski', '48036 Hailee Ranch\nGleichnerhaven, GA 86275', 47), (3, 'Dr. Valerie Sanford IV', '7575 Waelchi Turnpike Apt. 657\nZiemannside, MA 63837', 38), (4, 'Dr. Stefan Wiegand DDS', '66736 David Crossroad Suite 570\nUptonburgh, WI 04665-4935', 22), (5, 'Prof. Buster Hauck', '2855 Connelly Overpass Apt. 919\nEast Betsychester, MT 74899', 50), (6, 'Eve Smitham', '5152 Jameson Shoals Suite 182\nRempelton, PA 14644-0871', 17), (7, 'Enoch Bins', '851 Stiedemann Spurs\nEdenstad, PA 66288', 25), (8, 'Prof. Norene Medhurst', '7208 Wisoky Way\nWizahaven, MO 26526', 12), (9, 'Abby Leffler', '4111 Whitney Garden Suite 794\nWest Camrynside, TN 68964-8165', 3), (10, 'Brandyn Padberg', '5837 Herman Walk\nEmerymouth, NH 32783-7481', 38), (11, 'Moriah Bayer', '3650 Runolfsson Drives Suite 522\nWalshhaven, OH 31897-0990', 20), (12, 'Chasity Leffler', '130 Olson Forest\nLake Cooper, NC 73506-2720', 2), (13, 'Georgiana Schiller', '1577 Alfredo Pass Apt. 285\nUbaldoside, LA 77166', 21), (14, 'Jairo Hauck', '6222 Kunze Corners Suite 860\nWest Chanelview, NV 54499', 20), (15, 'Ms. Virginie McGlynn', '98016 Funk Mission\nPort Randy, MN 87411', 16), (16, 'Prof. Marcos Kuhn', '97741 Flatley Ways\nRobertsside, AL 63601-8829', 45), (17, 'Kadin Kirlin', '7461 Cortez Drive Suite 819\nBridgettebury, NY 17228', 43), (18, 'Myles Runolfsdottir', '28927 Jacynthe Skyway Suite 222\nFritzland, VA 63293-8621', 39), (19, 'Sarina Legros', '821 Prosacco Dam Suite 263\nPort Owen, MS 47912', 18), (20, 'Jovanny Goodwin', '96349 Hessel Shoals\nSouth Jermey, IN 73001-5052', 5), (21, 'Arlene Metz', '890 Nikki Rapid\nMayertbury, PA 33051-1658', 36), (22, 'Dorris Reichel', '111 Spencer Drive\nHanefurt, OK 42932', 25), (23, 'Missouri Russel', '8514 Murphy Via Suite 621\nNorth Casimerfurt, UT 51701', 6), (24, 'Aurelia Dietrich', '731 Runte Springs\nPort Zanderview, CO 43960', 13), (25, 'Mrs. Amiya Schinner', '6691 Rutherford Glen\nLake Alessia, VA 92960', 31), (26, 'Dr. Geovanny Rath II', '3204 Glover Stream\nTravisland, NY 81286-6028', 2), (27, 'Nora Klein II', '2758 Herzog Place Suite 399\nPort Timothybury, SC 02277-4531', 43), (28, 'Mrs. Elyse Lueilwitz DVM', '527 Huels Brook\nEast Stephenstad, AR 95396-3378', 6), (29, 'Dr. Audrey Eichmann Jr.', '71981 Ena Turnpike\nReganton, UT 41560', 40), (30, 'Prof. Willis Weimann I', '785 Broderick Isle\nBodeside, KS 40413', 25), (31, 'Rickie Keebler DDS', '9393 Nicolas Mall\nOdellstad, WV 77073', 4), (32, 'Prof. Coby Lemke IV', '835 Batz Curve\nEast Tevinside, ID 95076-7642', 39), (33, 'Vivian Fahey', '310 Hoeger Canyon Apt. 228\nJudsonchester, OR 62344-1132', 46), (34, 'Prof. Estelle Kiehn V', '85946 Idell Trace Suite 297\nEmardside, IA 25534', 16), (35, 'Violette Shields', '246 Giovanny Grove\nLake Gregorio, TX 68329-9161', 49), (36, 'Aracely Okuneva', '56770 Esteban Plains\nDellhaven, AR 89113-7934', 15), (37, 'Abdiel Mertz', '2619 Isabell Stravenue\nNew Rooseveltside, GA 88717', 23), (38, 'Dena Klocko', '8693 Jovan Camp Suite 292\nNew Napoleonland, MN 42544-1809', 42), (39, 'Carlee Moen', '51068 Hamill Island\nLavonneborough, SD 96557-8437', 29), (40, 'Timothy Glover DVM', '826 Efrain Estates\nRoweshire, MT 56428-3012', 1), (41, 'Harvey Wintheiser', '9891 Kirlin Meadow Apt. 714\nAdamsmouth, AZ 56103-4388', 31), (42, 'Miss Janis Lebsack', '472 Jones Harbors Suite 777\nIdabury, CO 81700-9493', 33), (43, 'Ansley Howell', '725 Cathy Overpass Apt. 929\nLuraburgh, IA 14885', 15), (44, 'Petra Schamberger', '734 Kuhic Spur Suite 605\nSouth Oletaville, MI 74891', 12), (45, 'Moshe Kirlin', '82026 Farrell Ferry Suite 302\nLesleyton, RI 21872', 15), (46, 'Oscar McClure', '7203 Raynor Mountains\nSouth Luciestad, GA 76370', 11), (47, 'Dr. Stephanie Luettgen', '4621 Abdul Shore Apt. 090\nHymanside, WV 88637-6041', 35), (48, 'Werner Larson', '8447 Brandon Isle\nVelmaburgh, NH 35423', 25), (49, 'Samara Graham', '1683 Gust Plaza Apt. 209\nMichaelfurt, MD 09573', 4), (50, 'Zachariah Bosco DDS', '5271 Greenholt Shores Suite 500\nNorth Danniebury, MD 57316-6873', 34); -- -- Indexes for dumped tables -- -- -- Indexes for table `destinations` -- ALTER TABLE `destinations` ADD PRIMARY KEY (`id`), ADD KEY `destinations_pemiliks_id_foreign` (`pemiliks_id`); -- -- Indexes for table `facilities` -- ALTER TABLE `facilities` ADD PRIMARY KEY (`id`), ADD KEY `facilities_destinations_id_foreign` (`destinations_id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `pemiliks` -- ALTER TABLE `pemiliks` ADD PRIMARY KEY (`id`); -- -- Indexes for table `transactions` -- ALTER TABLE `transactions` ADD PRIMARY KEY (`id`), ADD KEY `transactions_facilities_id_foreign` (`facilities_id`), ADD KEY `transactions_visitors_id_foreign` (`visitors_id`); -- -- Indexes for table `visitors` -- ALTER TABLE `visitors` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `destinations` -- ALTER TABLE `destinations` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `facilities` -- ALTER TABLE `facilities` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `pemiliks` -- ALTER TABLE `pemiliks` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `transactions` -- ALTER TABLE `transactions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=202; -- -- AUTO_INCREMENT for table `visitors` -- ALTER TABLE `visitors` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51; -- -- Constraints for dumped tables -- -- -- Constraints for table `destinations` -- ALTER TABLE `destinations` ADD CONSTRAINT `destinations_pemiliks_id_foreign` FOREIGN KEY (`pemiliks_id`) REFERENCES `pemiliks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `facilities` -- ALTER TABLE `facilities` ADD CONSTRAINT `facilities_destinations_id_foreign` FOREIGN KEY (`destinations_id`) REFERENCES `destinations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `transactions` -- ALTER TABLE `transactions` ADD CONSTRAINT `transactions_facilities_id_foreign` FOREIGN KEY (`facilities_id`) REFERENCES `facilities` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `transactions_visitors_id_foreign` FOREIGN KEY (`visitors_id`) REFERENCES `visitors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
true
90d15c6801e9ba88beed983baaea3e92527f5156
SQL
fflch/dados
/Queries/conta_alunosposgr_especiais_dpto.sql
UTF-8
257
2.890625
3
[]
no_license
SELECT COUNT(DISTINCT l.codpes) from VINCULOPESSOAUSP v INNER JOIN NOMEAREA n on v.codare = n.codare INNER JOIN LOCALIZAPESSOA l on v.codpes = l.codpes where v.sitatl = 'A' AND v.codclg = 8 and v.tipvin = 'ALUNOPOSESP' AND n.codare = __dpto__
true
9ae8a650c1360ce95f68e151ba3e6d46a6b0dfc8
SQL
dmullen17/work-samples
/Shiny Dashboard/SQL/acquired_28_day_spend_conversion_main.sql
UTF-8
6,360
3.984375
4
[]
no_license
drop table if exists acquired_28_day_spend_conversion_country; create table acquired_28_day_spend_conversion_country ( country varchar ,lifetime_28_day_bucket int ,engagement_status_total varchar ,deployment decimal(3,2) ,spender_status varchar ,User_Count int ,primary key(country, lifetime_28_day_bucket) ); insert into acquired_28_day_spend_conversion_country ( Select country ,lifetime_28_day_bucket ,engagement_status_total ,deployment ,spender_status ,count(distinct amplitude_id) User_Count From (Select a.amplitude_id ,a.country ,a.lifetime_28_day_bucket ,a.engagement_status_total ,a.deployment ,b.Total_Spend ,case when b.Total_Spend > 0 then 'Spender' when (b.Total_Spend <= 0 or b.Total_Spend is null) then 'Non-Spender' else 'Other' end spender_status From (Select a.amplitude_id ,case when a.country in ('United States', 'Russia', 'China', 'South Korea', 'Japan', 'Vietnam', 'Indonesia', 'Malaysia') then a.country else 'Other' end country ,a.lifetime_28_day_bucket ,a.engagement_status_total ,b.deployment From installs_minutes_played a Left Join deployments b on a.lifetime_28_day_bucket = b.trailing_28_day_bucket Group by 1,2,3,4,5 ) a Left Join (Select a.amplitude_id ,ceil((current_date - date(a.event_time)) / 28) lifetime_28_day_bucket ,sum(b.price) Total_Spend From monetization_iap_complete a Left Join revenue_lookup b on a.e_productid = b.e_productid Where date(a.event_time) >= '2016-01-13' Group By 1,2 ) b on a.amplitude_id = b.amplitude_id and a.lifetime_28_day_bucket = b.lifetime_28_day_bucket Group By 1,2,3,4,5,6,7 ) c Group By 1,2,3,4,5 ); drop table if exists acquired_28_day_spend_conversion; create table acquired_28_day_spend_conversion ( country varchar ,lifetime_28_day_bucket int ,engagement_status_total varchar ,deployment decimal(3,2) ,spender_status varchar ,User_Count int ,primary key(country, lifetime_28_day_bucket) ); insert into acquired_28_day_spend_conversion ( Select 'Total' as country ,lifetime_28_day_bucket ,engagement_status_total ,deployment ,spender_status ,count(distinct amplitude_id) User_Count From (Select a.amplitude_id ,a.lifetime_28_day_bucket ,a.engagement_status_total ,a.deployment ,b.Total_Spend ,case when b.Total_Spend > 0 then 'Spender' when (b.Total_Spend <= 0 or b.Total_Spend is null) then 'Non-Spender' else 'Other' end spender_status From (Select a.amplitude_id ,a.lifetime_28_day_bucket ,a.engagement_status_total ,b.deployment From installs_minutes_played a Left Join deployments b on a.lifetime_28_day_bucket = b.trailing_28_day_bucket Group by 1,2,3,4 ) a Left Join (Select a.amplitude_id ,ceil((current_date - date(a.event_time)) / 28) lifetime_28_day_bucket ,sum(b.price) Total_Spend From monetization_iap_complete a Left Join revenue_lookup b on a.e_productid = b.e_productid Where date(a.event_time) >= '2016-01-13' Group By 1,2 ) b on a.amplitude_id = b.amplitude_id and a.lifetime_28_day_bucket = b.lifetime_28_day_bucket Group By 1,2,3,4,5,6 ) c Group By 1,2,3,4,5 ); drop table if exists acquired_28_day_spend_conversion_main; create table acquired_28_day_spend_conversion_main ( country varchar ,lifetime_28_day_bucket int ,engagement_status_total varchar ,deployment decimal(3,2) ,Spender_Count varchar ,Non_Spender_Count varchar ,Spender_Conversion decimal(4,2) ,primary key(country, lifetime_28_day_bucket) ); insert into acquired_28_day_spend_conversion_main ( Select a.country ,a.lifetime_28_day_bucket ,a.engagement_status_total ,a.deployment ,a.User_Count Spender_Count ,b.User_Count Non_Spender_Count ,(100.00 * a.User_Count / (a.User_Count + b.User_Count)) Spender_Conversion From acquired_28_day_spend_conversion a Join acquired_28_day_spend_conversion b on a.country = b.country and a.lifetime_28_day_bucket = b.lifetime_28_day_bucket and a.engagement_status_total= b.engagement_status_total and a.deployment= b.deployment Where a.spender_status = 'Spender' And b.spender_status = 'Non-Spender' Group By 1,2,3,4,5,6,7 Union Select a.country ,a.lifetime_28_day_bucket ,a.engagement_status_total ,a.deployment ,a.User_Count Spender_Count ,b.User_Count Non_Spender_Count ,(100.00 * a.User_Count / (a.User_Count + b.User_Count)) Spender_Conversion From acquired_28_day_spend_conversion_country a Join acquired_28_day_spend_conversion_country b on a.country = b.country and a.lifetime_28_day_bucket = b.lifetime_28_day_bucket and a.engagement_status_total= b.engagement_status_total and a.deployment= b.deployment Where a.spender_status = 'Spender' And b.spender_status = 'Non-Spender' Group By 1,2,3,4,5,6,7 );
true
a58235d88c032e515b2c670c4e94fa79efc5481f
SQL
meiclm/pupil-home-school
/home_school.sql
UTF-8
8,960
3.59375
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : MySQL Source Server Version : 50723 Source Host : localhost:3306 Source Database : home_school Target Server Type : MYSQL Target Server Version : 50723 File Encoding : 65001 Date: 2018-10-17 19:25:34 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for message -- ---------------------------- DROP TABLE IF EXISTS `message`; CREATE TABLE `message` ( `id` int(11) NOT NULL, `t_id` varchar(11) NOT NULL, `p_id` varchar(11) NOT NULL, `message` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `t_id` (`t_id`), KEY `p_id` (`p_id`), CONSTRAINT `p_id` FOREIGN KEY (`p_id`) REFERENCES `t_parent` (`phone`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `t_id` FOREIGN KEY (`t_id`) REFERENCES `t_teacher` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of message -- ---------------------------- -- ---------------------------- -- Table structure for t_class -- ---------------------------- DROP TABLE IF EXISTS `t_class`; CREATE TABLE `t_class` ( `class_no` varchar(45) NOT NULL, `teacher` varchar(45) DEFAULT NULL, `count` int(11) DEFAULT NULL, `describe` int(11) DEFAULT NULL, PRIMARY KEY (`class_no`), KEY `teacher_idx` (`teacher`), CONSTRAINT `teacher` FOREIGN KEY (`teacher`) REFERENCES `t_teacher` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_class -- ---------------------------- INSERT INTO `t_class` VALUES ('150841', '1999090102', '40', '4'); INSERT INTO `t_class` VALUES ('150842', '1998090102', '40', '4'); -- ---------------------------- -- Table structure for t_course -- ---------------------------- DROP TABLE IF EXISTS `t_course`; CREATE TABLE `t_course` ( `id` int(11) NOT NULL, `name` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_course -- ---------------------------- INSERT INTO `t_course` VALUES ('1', '语文'); INSERT INTO `t_course` VALUES ('2', '数学'); INSERT INTO `t_course` VALUES ('3', '英语'); INSERT INTO `t_course` VALUES ('4', '体育'); INSERT INTO `t_course` VALUES ('5', '思想政治'); INSERT INTO `t_course` VALUES ('6', '美术'); INSERT INTO `t_course` VALUES ('7', '音乐'); INSERT INTO `t_course` VALUES ('8', '秋游'); INSERT INTO `t_course` VALUES ('9', '实践课'); INSERT INTO `t_course` VALUES ('10', '管理学校'); -- ---------------------------- -- Table structure for t_grade -- ---------------------------- DROP TABLE IF EXISTS `t_grade`; CREATE TABLE `t_grade` ( `grade_id` int(11) NOT NULL AUTO_INCREMENT, `s_no` varchar(45) DEFAULT NULL, `c_no` int(11) DEFAULT NULL, `term` varchar(45) DEFAULT NULL, `grade` varchar(45) DEFAULT NULL, PRIMARY KEY (`grade_id`), KEY `s_no_idx` (`s_no`), KEY `c_no_idx` (`c_no`), CONSTRAINT `c_no` FOREIGN KEY (`c_no`) REFERENCES `t_course` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `s_no` FOREIGN KEY (`s_no`) REFERENCES `t_student` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_grade -- ---------------------------- INSERT INTO `t_grade` VALUES ('1', '15084201', '1', '16-17-01', '80'); INSERT INTO `t_grade` VALUES ('2', '15084201', '2', '16-17-01', '90'); INSERT INTO `t_grade` VALUES ('3', '15084201', '3', '16-17-01', '60'); INSERT INTO `t_grade` VALUES ('4', '15084101', '1', '16-17-01', '66'); INSERT INTO `t_grade` VALUES ('5', '15084101', '2', '16-17-01', '78'); INSERT INTO `t_grade` VALUES ('6', '15084101', '3', '16-17-01', '100'); INSERT INTO `t_grade` VALUES ('7', '15084201', '1', '16-17-02', '90'); INSERT INTO `t_grade` VALUES ('8', '15084201', '2', '16-17-02', '66'); INSERT INTO `t_grade` VALUES ('9', '15084201', '3', '16-17-02', '100'); INSERT INTO `t_grade` VALUES ('10', '15084235', '1', '16-17-01', '90'); INSERT INTO `t_grade` VALUES ('11', '15084235', '2', '16-17-01', '100'); INSERT INTO `t_grade` VALUES ('12', '15084235', '3', '16-17-01', '90'); INSERT INTO `t_grade` VALUES ('13', '15084235', '1', '16-17-02', '90'); INSERT INTO `t_grade` VALUES ('14', '15084235', '2', '16-17-02', '90'); INSERT INTO `t_grade` VALUES ('15', '15084235', '3', '16-17-02', '80'); INSERT INTO `t_grade` VALUES ('16', '15084232', '1', '16-17-01', '80'); INSERT INTO `t_grade` VALUES ('17', '15084232', '2', '16-17-01', '80'); INSERT INTO `t_grade` VALUES ('18', '15084232', '3', '16-17-01', '90'); INSERT INTO `t_grade` VALUES ('19', '15084232', '1', '16-17-02', '99'); INSERT INTO `t_grade` VALUES ('20', '15084232', '2', '16-17-02', '90'); INSERT INTO `t_grade` VALUES ('21', '15084232', '3', '16-17-02', '100'); -- ---------------------------- -- Table structure for t_parent -- ---------------------------- DROP TABLE IF EXISTS `t_parent`; CREATE TABLE `t_parent` ( `openID` varchar(32) NOT NULL, `phone` varchar(50) NOT NULL, `password` varchar(45) DEFAULT NULL, `name` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `wechat` varchar(45) DEFAULT NULL, `job` varchar(45) DEFAULT NULL, `describe` longtext, PRIMARY KEY (`phone`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_parent -- ---------------------------- INSERT INTO `t_parent` VALUES ('oZTNs5d5929B-QAtyckE7DsZGsrU', '15735657423', '123456', '孙琦', null, 'e868142', '个体经营', null); INSERT INTO `t_parent` VALUES ('', '18735361050', '123456', '李燕锦', null, 'a1185024561', '教师', null); INSERT INTO `t_parent` VALUES ('', '18745632152', '123456', '单父母', null, 'joy134065', '个体经营', null); -- ---------------------------- -- Table structure for t_student -- ---------------------------- DROP TABLE IF EXISTS `t_student`; CREATE TABLE `t_student` ( `id` varchar(50) NOT NULL, `name` varchar(45) DEFAULT NULL, `addres` varchar(100) DEFAULT NULL, `parent` varchar(45) DEFAULT NULL, `birthday` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`), KEY `parent_idx` (`parent`), CONSTRAINT `parent` FOREIGN KEY (`parent`) REFERENCES `t_parent` (`phone`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_student -- ---------------------------- INSERT INTO `t_student` VALUES ('15084101', '单紫嫣', '小店区田园小区A45', '18745632152', '2008-11-06'); INSERT INTO `t_student` VALUES ('15084201', '张田梦', '上兰村文瀛小区A540', '18735361050', '2008-11-09'); INSERT INTO `t_student` VALUES ('15084232', '黄海波', '肥西县', '15735657423', '2008-11-12'); INSERT INTO `t_student` VALUES ('15084235', '孔德林', '济宁市', '15735657423', '2008-11-12'); -- ---------------------------- -- Table structure for t_teacher -- ---------------------------- DROP TABLE IF EXISTS `t_teacher`; CREATE TABLE `t_teacher` ( `id` varchar(50) NOT NULL, `password` varchar(50) DEFAULT NULL, `name` varchar(45) DEFAULT NULL, `position` varchar(45) DEFAULT NULL, `telephone` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `wechat` varchar(45) DEFAULT NULL, `sex` int(11) DEFAULT NULL, `birthday` varchar(50) DEFAULT NULL, `teaching` int(11) DEFAULT NULL, `admin` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `teaching_idx` (`teaching`), CONSTRAINT `teaching` FOREIGN KEY (`teaching`) REFERENCES `t_course` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of t_teacher -- ---------------------------- INSERT INTO `t_teacher` VALUES ('1998090101', '123456', '陈柳梅', '普通老师', '18735361050', '1667440354@qq.com', 'joy134065', '0', '1978-11-09', '2', '0'); INSERT INTO `t_teacher` VALUES ('1998090102', '123456', '赵琦', '普通老师', '15735659693', '396558528@qq.com', 'Yue-6666666', '0', '1978-1109', '1', '0'); INSERT INTO `t_teacher` VALUES ('1998090103', '123456', '谭诗雨', '校长', '15925207632', '1150573527@qq.com', 'tsy11223456', '0', '1968-10-15', '10', '1'); INSERT INTO `t_teacher` VALUES ('1998090104', '123456', '李丹妮', '教务处主任', '18334729708', '1565893158@qq.com', 'wxid_nraasje1tksh22', '0', '1968-10-15', '9', '1'); INSERT INTO `t_teacher` VALUES ('1999090101', '123456', '翟思源', '副校长', '13834648200', '921358361@qq.com', 'zsy921358361', '1', '1968-03-02', '3', '1'); -- ---------------------------- -- View structure for view_grade -- ---------------------------- DROP VIEW IF EXISTS `view_grade`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_grade` AS select `t_grade`.`s_no` AS `s_no`,`t_grade`.`c_no` AS `c_no`,`t_course`.`name` AS `name`,`t_grade`.`term` AS `term`,`t_grade`.`grade` AS `grade` from (`t_grade` join `t_course`) where (`t_grade`.`c_no` = `t_course`.`id`) ;
true
5489c444aa7d0405b3919a1cff3fed5c8834caa9
SQL
MrSnyder/bielefeldGEOCLIENT
/docker/postgres/postgresql_init_data/init.sql
UTF-8
761
2.640625
3
[ "Apache-2.0" ]
permissive
CREATE USER osm WITH PASSWORD 'osm'; CREATE USER mapbender WITH PASSWORD 'mapbender'; CREATE DATABASE osm OWNER osm; \connect osm; CREATE EXTENSION IF NOT EXISTS postgis; CREATE EXTENSION IF NOT EXISTS hstore; ALTER TABLE geometry_columns OWNER TO osm; ALTER TABLE spatial_ref_sys OWNER TO osm; CREATE DATABASE munimap OWNER osm; \connect munimap; CREATE EXTENSION IF NOT EXISTS postgis; CREATE EXTENSION IF NOT EXISTS hstore; ALTER TABLE geometry_columns OWNER TO osm; ALTER TABLE spatial_ref_sys OWNER TO osm; CREATE DATABASE mapbender OWNER mapbender; \connect mapbender; CREATE EXTENSION IF NOT EXISTS postgis; CREATE EXTENSION IF NOT EXISTS hstore; ALTER TABLE geometry_columns OWNER TO mapbender; ALTER TABLE spatial_ref_sys OWNER TO mapbender;
true
2ea701a972d05c71e732dd2e6b245ef40de3984a
SQL
MoniqueCampbell/Database2
/info3180-lab4-master (old version)/socialmedia.sql
UTF-8
5,170
3.875
4
[]
no_license
-- CREATE DATABASE socialmeadia; -- use socialmeadia; #Changed user_id to integer NOT NULL for all tables except User #Changed user_id for user table to integer NOT NULL AUTO_INCREMENT, #Changed profile_id for only profile table to integer NOT NULL AUTO_INCREMENT, #Changed image_id for only image table to integer NOT NULL AUTO_INCREMENT, #Changed profile_id for profile_id,image_id to integer NOT NULL, #Changed dob to date in Profile create table User( user_id integer NOT NULL AUTO_INCREMENT, firstname varchar(100) NOT NULL, lastname varchar(100) NOT NULL, email varchar(100) NOT NULL, password_digest varchar(255) NOT NULL, primary key(user_id) ); create table Phone( user_id integer NOT NULL, telephone_no varchar(50) NOT NULL, area_code varchar(10) NOT NULL, primary key(user_id,telephone_no), foreign key(user_id) references User(user_id) on delete cascade on update cascade ); create table Address( user_id integer NOT NULL, street_name varchar(100) NOT NULL, city varchar(100) NOT NULL, country varchar(50) NOT NULL, primary key(user_id), foreign key(user_id) references User(user_id) on delete cascade on update cascade ); create table Profile( profile_id integer NOT NULL AUTO_INCREMENT, user_id integer, dob date, gender varchar(9), nickname varchar(100), primary key(profile_id), foreign key(user_id) references User(user_id) on delete cascade on update cascade ); create table Image( image_id integer NOT NULL AUTO_INCREMENT, image_name varchar(50) NOT NULL, directory varchar(100) NOT NULL, primary key(image_id) ); create table Profile_pic( profile_id integer NOT NULL, image_id integer NOT NULL, primary key(profile_id,image_id), foreign key(image_id) references Image(image_id) on delete cascade on update cascade, foreign key(profile_id) references Profile(profile_id) on delete cascade on update cascade ); create table Adds( image_id integer NOT NULL, user_id integer NOT NULL, primary key(image_id), foreign key(user_id) references User(user_id) on delete cascade on update cascade, foreign key(image_id) references Image(image_id) on delete cascade on update cascade ); create table Post( post_id integer NOT NULL AUTO_INCREMENT, description varchar(250) NOT NULL, post_date date NOT NULL, post_time time NOT NULL, primary key(post_id) ); create table Post_image( post_id integer NOT NULL, image_id integer NOT NULL, primary key(post_id, image_id), foreign key(post_id) references Post(post_id) on delete cascade on update cascade, foreign key(image_id) references Image(image_id) on delete cascade on update cascade ); create table Submits( post_id integer NOT NULL, user_id integer NOT NULL, primary key(post_id), foreign key(post_id) references Post(post_id) on delete cascade on update cascade, foreign key(user_id) references User(user_id) on delete cascade on update cascade ); create table Comment( com_id integer NOT NULL AUTO_INCREMENT, post_id integer NOT NULL, usr_text varchar(250) NOT NULL, com_date date NOT NULL, com_time time NOT NULL, primary key(com_id,post_id), foreign key(post_id) references Post(post_id) on delete cascade on update cascade ); create table Commented( user_id integer NOT NULL, com_id integer NOT NULL, post_id integer NOT NULL, primary key(user_id,com_id), foreign key(user_id) references User(user_id) on delete cascade on update cascade, foreign key(com_id) references Comment(com_id) on delete cascade on update cascade, foreign key(post_id) references Post(post_id) on delete cascade on update cascade ); create table Group1( group_id integer NOT NULL AUTO_INCREMENT, group_name varchar(50), primary key(group_id) ); create table friends_with( user_id integer NOT NULL, friend_id integer NOT NULL, group_id integer NOT NULL, primary key(user_id,friend_id), foreign key(user_id) references User(user_id) on delete cascade on update cascade, foreign key(group_id) references Group1(group_id) on delete cascade on update cascade ); create table creates( editor_id integer NOT NULL, group_id integer NOT NULL, user_id integer NOT NULL, create_date date, primary key(editor_id, group_id), foreign key(group_id) references Group1(group_id) on delete cascade on update cascade, foreign key(user_id) references User(user_id) on delete cascade on update cascade ); create table joins( user_id integer NOT NULL, group_id integer NOT NULL, join_date date, primary key(user_id, group_id), foreign key(group_id) references Group1(group_id) on delete cascade on update cascade, foreign key(user_id) references User(user_id) on delete cascade on update cascade ); create table belongs( post_id integer NOT NULL, group_id integer NOT NULL, primary key(post_id,group_id), foreign key(post_id) references Post(post_id) on delete cascade on update cascade, foreign key(group_id) references Group1(group_id) on delete cascade on update cascade ); INSERT INTO Group1(group_id,group_name) VALUES(1,"Relatives"); INSERT INTO Group1(group_id,group_name) VALUES(2,"School"); INSERT INTO Group1(group_id,group_name) VALUES(3,"Work");
true
7ab1885dc8dcfab1e943fedb298b373d85d98b86
SQL
w01f/VolgaTeam.PowerPointHtml5Tools
/ClientWebLinksApp/protected/schema/tables/tbl_activity_user.sql
UTF-8
438
2.984375
3
[]
no_license
DROP TABLE IF EXISTS `tbl_activity_user`; CREATE TABLE IF NOT EXISTS `tbl_activity_user` ( `id` bigint NOT NULL AUTO_INCREMENT, `id_activity` varchar(32) NOT NULL, `ip` varchar(64) DEFAULT NULL, `os` varchar(256) DEFAULT NULL, `device` varchar(256) DEFAULT NULL, `browser` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`), KEY `id_statistic` (`id_activity`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
true
13f4f14a8effd4f85c4ff55d7d599a6e12b12a50
SQL
JoelPatricio/gestorCursos
/Base/procedimientos y volcado.sql
UTF-8
4,972
3.921875
4
[]
no_license
USE `gestorcursos` ; insert into registro (matricula,password) values ("B6ACA741566","h698115f5h"), ("A5ACB920483","n95110b1n"); DELIMITER $$ CREATE PROCEDURE login(IN matriculaIn VARCHAR(50), IN passwordIn VARCHAR(50)) BEGIN SELECT count(*) FROM registro WHERE matricula=matriculaIn AND password=passwordIn; END$$ --CALL login('A5ACB920483','n95110b1n'); --DROP PROCEDURE nombre_procedimiento --show procedure status; DELIMITER $$ CREATE PROCEDURE nuevaMateria(IN nombreIN VARCHAR(45), IN unidadesIN INT, IN examenesIN INT, IN tareasIN INT, IN asistenciasIN INT, IN matriculaIN VARCHAR(45)) BEGIN INSERT INTO cursos (nombre,unidades,examen,tareas,asistencias,registro_matricula) VALUES (nombreIN,unidadesIN,examenesIN,tareasIN,asistenciasIN,matriculaIN); SET @idMateria=(SELECT MAX(idcursos) AS id FROM cursos); SET @i=0; REPEAT INSERT INTO unidades (cursos_idcursos) VALUES (@idMateria); SET @i=@i+1; UNTIL @i=unidadesIN END REPEAT; END$$ --CALL nuevaMateria('Ingles',4,25,50,25,'B6ACA741566'); DELIMITER $$ CREATE PROCEDURE mostrarCursos(IN matriculaIN VARCHAR(45)) BEGIN SELECT * FROM cursos WHERE registro_matricula=matriculaIN; END$$ DELIMITER $$ CREATE PROCEDURE eliminarCurso(IN idcursosIN INT) BEGIN DELETE FROM unidades WHERE cursos_idcursos=idcursosIN; DELETE FROM cursos WHERE idcursos=idcursosIN; END$$ DELIMITER $$ CREATE PROCEDURE mostrarCurso(IN idcursosIN INT) BEGIN SELECT * FROM cursos WHERE idcursos=idcursosIN; END$$ DELIMITER $$ CREATE PROCEDURE agregarAlumno(IN nombreIN VARCHAR(45), IN idcursosIN INT) BEGIN INSERT INTO alumnos (nombre,cursos_idcursos) VALUES (nombreIN,idcursosIN); SELECT MAX(idalumnos) AS id FROM alumnos; END$$ DELIMITER $$ CREATE PROCEDURE mostrarIdUnidadesCurso(IN idCurso INT) BEGIN SELECT idunidades FROM unidades AS u INNER JOIN cursos ON u.cursos_idcursos=idcursos WHERE cursos_idcursos=idCurso; END$$ DELIMITER $$ CREATE PROCEDURE mostrarAlumnos(IN idcursosIN INT) BEGIN SELECT * FROM alumnos WHERE cursos_idcursos=idcursosIN ORDER BY nombre ASC; END$$ DELIMITER $$ CREATE PROCEDURE agregarAlumno_Unidades(IN idAlumno INT, IN idUnidades INT) BEGIN INSERT INTO alumnosCalificaciones(alumnos_idalumnos,unidades_idunidades) VALUES (idAlumno,idUnidades); END$$ DELIMITER $$ CREATE PROCEDURE contarAlumnos(IN idcursosIN INT) BEGIN SELECT count(*) FROM alumnos WHERE cursos_idcursos=idcursosIN; END$$ DELIMITER $$ CREATE PROCEDURE mostrarUnidades(IN idcursosIN INT) BEGIN SELECT * FROM unidades WHERE cursos_idcursos=idcursosIN; END$$ DELIMITER $$ CREATE PROCEDURE eliminarAlumno(IN idalumnoIN INT) BEGIN DELETE FROM alumnosCalificaciones WHERE alumnos_idalumnos=idalumnoIN; DELETE FROM alumnos WHERE idalumnos=idalumnoIN; END$$ DELIMITER $$ CREATE PROCEDURE mostrarAlumnosUnidad(IN idCursos INT,IN idUnidades INT) BEGIN SELECT idalumnos,nombre,calExamenes,calTareas,calAsistencias FROM alumnos AS a INNER JOIN alumnosCalificaciones ON a.idalumnos=alumnos_idalumnos WHERE cursos_idcursos=idCursos AND unidades_idunidades=idUnidades ORDER BY nombre; END$$ DELIMITER $$ CREATE PROCEDURE obtenerRubrosEvaluacion(IN idCursos INT) BEGIN SELECT examen,tareas,asistencias FROM cursos WHERE idcursos=idCursos; END$$ DELIMITER $$ CREATE PROCEDURE mostrarNombreAlumno(IN idAlumno INT) BEGIN SELECT nombre FROM alumnos WHERE idalumnos=idAlumno; END$$ DELIMITER $$ CREATE PROCEDURE actualizarCalificacionUnidad(IN idAlumnoIN INT,IN idUnidadIN INT,IN calExamenesIN INT,IN calTareasIN INT,IN calAsistenciasIN INT) BEGIN UPDATE alumnosCalificaciones SET calExamenes=calExamenesIN,calTareas=calTareasIN,calAsistencias=calAsistenciasIN WHERE unidades_idunidades=idUnidadIN AND alumnos_idalumnos=idAlumnoIN; END$$ DELIMITER $$ CREATE PROCEDURE mostrarCalificacionesFinales(IN idAlumno INT) BEGIN select calExamenes,calTareas,calAsistencias from alumnosCalificaciones where alumnos_idalumnos=idAlumno; END$$ DELIMITER $$ CREATE PROCEDURE numeroUnidades(IN idCursos INT) BEGIN select unidades from cursos where idCursos=idCursos; END$$ DELIMITER $$ CREATE PROCEDURE mostrarCalificacionesFinalesGrafica(IN idCursos INT) BEGIN select calExamenes,calTareas,calAsistencias from alumnosCalificaciones as a inner join unidades on a.unidades_idunidades=idunidades where cursos_idcursos=idCursos; END$$ DELIMITER $$ CREATE PROCEDURE mostrarCalificacionesUnidadGrafica(IN idUnidad INT) BEGIN select calExamenes,calTareas,calAsistencias from alumnosCalificaciones where unidades_idunidades=idUnidad; END$$
true