本帖最后由 zisetian 于 2009-11-11 09:11 编辑
以下是需要执行的代码,由于复制不完,只能复制了上半部分,,下半部分也全是经纬度和地区了。
uchome 谷歌地图插件在phpmyadmin中执行出错。- /*
- MySQL Data Transfer
- Source Host: localhost
- Source Database: home5
- Target Host: localhost
- Target Database: home5
- Date: 2009/2/12 22:22:57
- */
- SET FOREIGN_KEY_CHECKS=0;
- -- ----------------------------
- -- Table structure for uchome_city
- -- ----------------------------
- DROP TABLE IF EXISTS `uchome_city`;
- CREATE TABLE `uchome_city` (
- `city` varchar(15) NOT NULL,
- `lat` varchar(20) NOT NULL,
- `lng` varchar(20) NOT NULL,
- `grange` varchar(20) NOT NULL,
- PRIMARY KEY (`city`)
- ) ENGINE=MyISAM DEFAULT CHARSET=gbk;
- -- ----------------------------
- -- Records
- -- ----------------------------
- INSERT INTO `uchome_city` VALUES ('阿克苏', '41.123922', '80.244527', '84628.710938');
- INSERT INTO `uchome_city` VALUES ('阿勒泰', '47.810049', '88.069013', '48500.683594');
- INSERT INTO `uchome_city` VALUES ('阿里', '32.551697', '80.102745', '174029.625000');
- INSERT INTO `uchome_city` VALUES ('阿图什', '39.717335', '76.169235', '1465.301392');
- INSERT INTO `uchome_city` VALUES ('安吉', '30.623252', '119.569434', '27195.955078');
- INSERT INTO `uchome_city` VALUES ('奥地利', '47.516231', '14.550072', '556243.125000');
- INSERT INTO `uchome_city` VALUES ('澳洲', '-25.274398', '133.775136', '4519526.500000');
- INSERT INTO `uchome_city` VALUES ('宝坻', '39.596173', '117.424257', '24358.705078');
- INSERT INTO `uchome_city` VALUES ('保山', '25.116213', '99.162598', '7054.911621');
- INSERT INTO `uchome_city` VALUES ('北辰', '39.256731', '117.176657', '9168.316406');
- INSERT INTO `uchome_city` VALUES ('北美', '', '', '');
- INSERT INTO `uchome_city` VALUES ('博乐', '44.903530', '82.074425', '1000.000000');
- INSERT INTO `uchome_city` VALUES ('昌都', '31.181562', '97.150265', '81039.875000');
- INSERT INTO `uchome_city` VALUES ('昌吉', '44.004430', '87.988225', '53466.902344');
- INSERT INTO `uchome_city` VALUES ('楚雄', '25.054929', '101.544721', '50013.976562');
- INSERT INTO `uchome_city` VALUES ('慈溪', '30.182640', '121.341999', '20437.722656');
- INSERT INTO `uchome_city` VALUES ('大港', '38.762366', '117.368231', '19921.648438');
- INSERT INTO `uchome_city` VALUES ('大理', '25.584234', '100.222124', '30861.056641');
- INSERT INTO `uchome_city` VALUES ('大洋洲', '', '', '');
- INSERT INTO `uchome_city` VALUES ('德国', '51.165691', '10.451526', '727195.937500');
- INSERT INTO `uchome_city` VALUES ('德阳', '31.127538', '104.397808', '17255.566406');
- INSERT INTO `uchome_city` VALUES ('定海', '26.273550', '119.798183', '1000.000000');
- INSERT INTO `uchome_city` VALUES ('东川', '26.092665', '103.181221', '1147.673096');
- INSERT INTO `uchome_city` VALUES ('东丽', '39.120480', '117.401673', '34238.382812');
复制代码 下面是错误提示:
phpmyadmin错误提示代码:
错误
SQL 查询:CREATETABLE`uchome_city`(
`city`varchar(15)NOTNULL,
`lat`varchar(20)NOTNULL,
`lng`varchar(20)NOTNULL,
`grange`varchar(20)NOTNULL,
PRIMARYKEY(`city`))ENGINE=MYISAMDEFAULTCHARSET=gbk
MySQL 返回: #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=gbk' at line |