''塔吉克斯坦''),('''213'',''坦桑尼亚''),('''214'',''泰国''),('''''','= 20 (''27'',''百慕大''),('''28'',''不丹''),('''''',''玻利维亚''),''' 30'',''波斯尼亚 和黑塞哥维那''),(''''',''博茨瓦纳''),('''32'',''巴西''),( 33, ''文莱''),('''34'',''保加利亚''),('''''''''''''''''''''''''''''''' (''36'', ''布隆迪''),('''37'',''柬埔寨''),('''''',''喀麦隆''), (''39'',''加拿大''), (''''',''佛得角''),'''''''''''''''''''''''''''''''' ),('''42'',''中央 非洲共和国''),( 43,乍得,(44,智利),(45,中国), (' '46'',''圣诞岛''),('''''''''科科斯群岛''),('''''''''''''''''''''''''''''''''''''''''''''''''''' ('''49'',''科摩罗''),('''''''''刚果,民主共和国 of''),('''''',''刚果,'''),(''''',''库克群岛''),('''''','''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ',''C?te d''Ivoire''),('''55'',''克罗地亚''),('''56'', ''古巴'') ,('''57'','塞浦路斯''),('''''''''捷克共和国''),''''''''''''''''''''''''''''''''''''''''''''' ),(''''','''吉布提''),(''''',''多米尼加''),'''''',''多米尼加 共和国' '),('''63'',''厄瓜多尔''),('''64'',''埃及'),('''65'',''El 萨尔瓦多''),('''66'',''赤道几内亚''),'''67'',''厄立特里亚''),('''68'', ''爱沙尼亚''),('''''',''埃塞俄比亚''),''''''','''福克兰群岛''),('''71'', ''法罗群岛''),('''72'',''斐济''),'''''', ''芬兰''),('''''',''法国'', ('''''',''法属波利尼西亚''),'''''''''' ,''加蓬''),('''''',''冈比亚,''), (''''','''格鲁吉亚''),'''79 '','''德国'),(''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '',''希腊''),('''''',''格陵兰''),('''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '',''关岛''),('''''',''危地马拉''),''''''', '根西岛'),(''88'', ''几内亚''),('''''''''几内亚比绍''',''''''''' ,''圭亚那''),('''91'','''海地'', (''''','''洪都拉斯''),'''93'' ,''香港'),('''94'',''匈牙利''),('''''','''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''','''''''''''''''','''''''''''''',''''''''''''''''''''''''' ','''伊拉克'',(''''',''爱尔兰''),(''''','''马恩岛''),'''''',' ''以色列''),('''''',''意大利''),('''104'',''牙买加''),('''''''''日本' '), (''106'',''泽西''),('''107'',''乔丹''),('''108'',''哈萨克斯坦' '),('''109'', ''肯尼亚''),(''''''''''''''''''''''''''''''''''' '),('''111'',''科索沃''),('''112'','''科威特''), ('''113'',''吉尔吉斯斯坦' '),('''114'',''老挝''),('''115'',''拉脱维亚''),('''116'', ''黎巴嫩' '),('''117'',''莱索托''),('''118'',''利比里亚''),('''119'',''利比亚''), (''120'',''列支敦士登''),('''121'',''立陶宛''),('''122'',''卢森堡''), (''123'',''澳门''),('''124'',''马达加斯加''),('''125'',''马拉维''),'''126' ', ''马来西亚''),('''127'',''马尔代夫''),('''''''''马里''),'''129' ',''马耳他'', (''130'',''马绍尔群岛''),('''131'',''毛里塔尼亚''),'''132 '', ''毛里求斯''),('''133'', 'Mayotte''),('''134'',''墨西哥''),('''135'', ''密克罗尼西亚''),('''136'',' '摩尔多瓦''),('''137'',''摩纳哥''),('''''','''''''''''''''''''''''''''''''''''''''''''''''''' '黑山''),('''''',''蒙特塞拉特''),('''141'','/''''摩洛哥''),('''142'',' 莫桑比克,('''143'',''缅甸''),('''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ,''纳米比亚''),('''''',''瑙鲁''),('''147'', ''尼泊尔''),('''148'' ,''荷兰''),(''''''''''荷属安的列斯群岛'', ('''''',''新喀里多尼亚''),'''151 '','''新西兰''),(''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 154'',''尼日利亚''),''''155'', ''纽埃'), (''156'',''诺福克岛''),(''157'',''朝鲜''),'''158' ',''北方 塞浦路斯'',('''159'',''北马里亚纳群岛''),('''160'',''挪威''), ('''161'',''阿曼''),('''162'',''巴基斯坦''),('''163'',''帕劳''),(' '164'', ''巴勒斯坦''),(''165'',''巴拿马''),('''166'',''巴布亚新几内亚'', (''167'', ''巴拉圭''),('''168'',''秘鲁''),('''169'',''菲律宾''), (''170'', ''皮特凯恩群岛''),('''171'',''波兰''),(''172'',''葡萄牙'') ,(''173'', ''Pridnestrovie''),('''174'',''波多黎各''),('''175'',''卡塔尔'' ),(''176'', ''共和国马其顿''),('''177'',''罗马尼亚''),(''178'',''俄罗斯''), ('''179'',' ''卢旺达'',('''180'',''圣海伦娜''),(''''''''圣基茨和 尼维斯'','''182 '',''圣卢西亚''),(''''''''圣皮埃尔和 Miquelon''),(''''''''''''''''''''''''''''''''''''''''格林纳丁斯'',('''''','/'''萨摩亚''),('''''''''''''''''''''''''''''''''''''''' ''s?oTomé和Príncipe'', ('''188'',''沙特阿拉伯''),('''''''''塞内加尔''),( ''190'',''塞尔维亚''),('''191'',''塞舌尔''),('''192'',''塞拉利昂''), ('''193'',''新加坡''), (''194'',''斯洛伐克''),('''195'',''斯洛文尼亚''), (''196'',''所罗门群岛''),('''197'',''索马里''),('''198'',''索马里兰'') ,'''199'',''南非'', (''''','''韩国''),'''''',''南奥塞梯''),('''''',''西班牙''), (''''','''斯里兰卡''),'''''''''''苏丹''),('''205'',''苏里南''),( ''206'', ''斯瓦尔巴德''),('''207'',''斯威士兰''),('''208'',''瑞典''),( ''209'', ''瑞士''),('''210'',''叙利亚''),'''''''''''台湾''),( ''212'', ''塔吉克斯坦''),('''213'',''坦桑尼亚''),('''214'',''泰国''),( ''215'', ''东帝汶'',('''216'',''多哥''),(''217'',''托克劳'') ,(''218'',''汤加''), (''219'',''特立尼达和多巴哥''),'''220'',''特里斯坦达Cunha''),(''221'', ''突尼斯''),(''222'',''土耳其''),'''223'',''土库曼斯坦''),(''224'', ''特克斯和凯科斯群岛''),('''225'',''图瓦卢''),''''226'' ,''乌干达'', (''227'',''乌克兰'',('''228'',''阿拉伯联合酋长国''),('''229'',''联合国 王国''),(''''''''' ,''美国'),('''231'','''乌拉圭''),('''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ',''瓦努阿图'),('''234'','''梵蒂冈城''),('''235'', ''委内瑞拉''),('''236 '',''越南'',('''237'',''维尔京群岛,英国'), ('''238'',''美属维尔京群岛' '),(''''239'',''瓦利斯和 福图纳''),('''240'',''西撒哈拉''),'''241'',' '也门''),('''''','b $ b''赞比亚''),('''243'',''津巴布韦''); 尽管有其他评论,你的桌子和专栏名称后面的反贴词 也没关系。它们对MySQL有效。 如果`id`是一个数值,你不应该在 数值附近有引号,即你应该有( 1,''Abkhazia'')。 另外如上所述,值为54的条目中包含单引号。 将值包含在double中然而,引用是不正确的 - 是无效的SQL(字符串必须用单引号括起来)。 纠正这个问题的方法是有两个字符串中的单引号,即 ''C?te d''''Ivoire'' 非ASCII字符(即''?土地'')可能是也可能不是问题 - 它 取决于桌子的定义。 我不知道为什么会给这个但是超时错误。它不应该花费很多时间来插入它。我建议你把它分成 小块,然后看看会发生什么。您应该能够确定我们错过了您的SQL中是否还有其他错误。 - ================== 删除x来自我的电子邮件地址 Jerry Stuckle JDS计算机培训公司 js ******* @ attglobal.net ================== I am trying to populate a table with the following insert query runthrough phpmyadmin. When I attempt to run it phpmyadmin just freezes.After a while "Fatal error: Maximum execution time of 300 secondsexceeded in /web/myadmin/283/libraries/import.lib.php on line 19"appears but no indication as why the command fails. Any advice mostwelcome.INSERT INTO `countries` ( `id` , `country` ) VALUES (''1'',''Abkhazia''), (''2'', ''Afghanistan''), (''3'', ''Akrotiri and Dhekelia''),(''4'', ''?land''), (''5'', ''Albania''), (''6'', ''Algeria''), (''7'', ''AmericanSamoa''), (''8'', ''Andorra''), (''9'', ''Angola''), (''10'', ''Anguilla''), (''11'',''Antigua and Barbuda ''), (''12'', ''Argentina''), (''13'', ''Armenia''),(''14'', ''Aruba''), (''15'', ''Ascension Island''), (''16'', ''Australia''),(''17'', ''Austria''), (''18'', ''Azerbaijan''), (''19'', ''Bahamas, The''),(''20'', ''Bahrain''), (''21'', ''Bangladesh''), (''22'', ''Barbados ''), (''23'',''Belarus''), (''24'', ''Belgium''), (''25'', ''Belize ''), (''26'', ''Benin''),(''27'', ''Bermuda''), (''28'', ''Bhutan''), (''29'', ''Bolivia''), (''30'', ''Bosniaand Herzegovina''), (''31'', ''Botswana''), (''32'', ''Brazil''), (''33'',''Brunei''), (''34'', ''Bulgaria''), (''35'', ''Burkina Faso ''), (''36'',''Burundi''), (''37'', ''Cambodia''), (''38'', ''Cameroon''), (''39'', ''Canada''),(''40'', ''Cape Verde''), (''41'', ''Cayman Islands''), (''42'', ''CentralAfrican Republic''), (''43'', ''Chad''), (''44'', ''Chile''), (''45'', ''China''),(''46'', ''Christmas Island''), (''47'', ''Cocos Islands''), (''48'',''Colombia''), (''49'', ''Comoros''), (''50'', ''Congo, Democratic Republicof''), (''51'', ''Congo, Republic of''), (''52'', ''Cook Islands''), (''53'',''Costa Rica''), (''54'', ''C?te d''Ivoire''), (''55'', ''Croatia''), (''56'',''Cuba''), (''57'', ''Cyprus''), (''58'', ''Czech Republic''), (''59'',''Denmark''), (''60'', ''Djibouti''), (''61'', ''Dominica''), (''62'', ''DominicanRepublic ''), (''63'', ''Ecuador''), (''64'', ''Egypt''), (''65'', ''ElSalvador''), (''66'', ''Equatorial Guinea''), (''67'', ''Eritrea''), (''68'',''Estonia''), (''69'', ''Ethiopia''), (''70'', ''Falkland Islands''), (''71'',''Faroe Islands''), (''72'', ''Fiji''), (''73'', ''Finland''), (''74'', ''France''),(''75'', ''French Polynesia''), (''76'', ''Gabon''), (''77'', ''Gambia, The''),(''78'', ''Georgia''), (''79'', ''Germany''), (''80'', ''Ghana''), (''81'',''Gibraltar''), (''82'', ''Greece''), (''83'', ''Greenland''), (''84'', ''Grenada''), (''85'', ''Guam''), (''86'', ''Guatemala''), (''87'', ''Guernsey''), (''88'',''Guinea''), (''89'', ''Guinea-Bissau''), (''90'', ''Guyana''), (''91'', ''Haiti''),(''92'', ''Honduras''), (''93'', ''Hong Kong''), (''94'', ''Hungary''), (''95'',''Iceland''), (''96'', ''India''), (''97'', ''Indonesia''), (''98'', ''Iran''),(''99'', ''Iraq''), (''100'', ''Ireland''), (''101'', ''Isle of Man''), (''102'',''Israel''), (''103'', ''Italy''), (''104'', ''Jamaica ''), (''105'', ''Japan ''),(''106'', ''Jersey''), (''107'', ''Jordan''), (''108'', ''Kazakhstan''), (''109'',''Kenya''), (''110'', ''Kiribati''), (''111'', ''Kosovo''), (''112'', ''Kuwait''),(''113'', ''Kyrgyzstan''), (''114'', ''Laos''), (''115'', ''Latvia''), (''116'',''Lebanon''), (''117'', ''Lesotho''), (''118'', ''Liberia''), (''119'', ''Libya''),(''120'', ''Liechtenstein''), (''121'', ''Lithuania''), (''122'', ''Luxembourg''),(''123'', ''Macao''), (''124'', ''Madagascar''), (''125'', ''Malawi''), (''126'',''Malaysia ''), (''127'', ''Maldives''), (''128'', ''Mali''), (''129'', ''Malta''),(''130'', ''Marshall Islands''), (''131'', ''Mauritania''), (''132'',''Mauritius''), (''133'', ''Mayotte''), (''134'', ''Mexico''), (''135'',''Micronesia''), (''136'', ''Moldova''), (''137'', ''Monaco''), (''138'',''Mongolia ''), (''139'', ''Montenegro''), (''140'', ''Montserrat''), (''141'',''Morocco''), (''142'', ''Mozambique''), (''143'', ''Myanmar''), (''144'',''Nagorno-Karabakh''), (''145'', ''Namibia''), (''146'', ''Nauru''), (''147'',''Nepal''), (''148'', ''Netherlands''), (''149'', ''Netherlands Antilles''),(''150'', ''New Caledonia''), (''151'', ''New Zealand ''), (''152'',''Nicaragua''), (''153'', ''Niger''), (''154'', ''Nigeria''), (''155'', ''Niue''),(''156'', ''Norfolk Island''), (''157'', ''North Korea''), (''158'', ''NorthernCyprus''), (''159'', ''Northern Mariana Islands''), (''160'', ''Norway''),(''161'', ''Oman''), (''162'', ''Pakistan''), (''163'', ''Palau''), (''164'',''Palestine''), (''165'', ''Panama''), (''166'', ''Papua New Guinea''), (''167'',''Paraguay''), (''168'', ''Peru''), (''169'', ''Philippines''), (''170'',''Pitcairn Islands''), (''171'', ''Poland''), (''172'', ''Portugal''), (''173'',''Pridnestrovie''), (''174'', ''Puerto Rico''), (''175'', ''Qatar''), (''176'',''Republic of Macedonia''), (''177'', ''Romania ''), (''178'', ''Russia''),(''179'', ''Rwanda''), (''180'', ''Saint Helena''), (''181'', ''Saint Kitts andNevis''), (''182'', ''Saint Lucia ''), (''183'', ''Saint Pierre andMiquelon''), (''184'', ''Saint Vincent & the Grenadines''), (''185'',''Samoa''), (''186'', ''San Marino''), (''187'', ''S?o Tomé and Príncipe''),(''188'', ''Saudi Arabia''), (''189'', ''Senegal''), (''190'', ''Serbia''),(''191'', ''Seychelles''), (''192'', ''Sierra Leone''), (''193'', ''Singapore''),(''194'', ''Slovakia''), (''195'', ''Slovenia''), (''196'', ''Solomon Islands ''),(''197'', ''Somalia''), (''198'', ''Somaliland''), (''199'', ''South Africa''),(''200'', ''South Korea''), (''201'', ''South Ossetia''), (''202'', ''Spain''),(''203'', ''Sri Lanka''), (''204'', ''Sudan''), (''205'', ''Suriname''), (''206'',''Svalbard''), (''207'', ''Swaziland''), (''208'', ''Sweden''), (''209'',''Switzerland''), (''210'', ''Syria''), (''211'', ''Taiwan''), (''212'',''Tajikistan''), (''213'', ''Tanzania''), (''214'', ''Thailand''), (''215'',''Timor-Leste''), (''216'', ''Togo''), (''217'', ''Tokelau''), (''218'', ''Tonga''),(''219'', ''Trinidad and Tobago''), (''220'', ''Tristan da Cunha''), (''221'',''Tunisia''), (''222'', ''Turkey''), (''223'', ''Turkmenistan ''), (''224'',''Turks and Caicos Islands''), (''225'', ''Tuvalu ''), (''226'', ''Uganda''),(''227'', ''Ukraine ''), (''228'', ''United Arab Emirates ''), (''229'', ''UnitedKingdom''), (''230'', ''United States''), (''231'', ''Uruguay''), (''232'',''Uzbekistan''), (''233'', ''Vanuatu''), (''234'', ''Vatican City''), (''235'',''Venezuela''), (''236'', ''Vietnam''), (''237'', ''Virgin Islands, British''),(''238'', ''Virgin Islands, United States''), (''239'', ''Wallis andFutuna''), (''240'', ''Western Sahara''), (''241'', ''Yemen''), (''242'',''Zambia''), (''243'', ''Zimbabwe''); 解决方案 >I am trying to populate a table with the following insert query run=20>through phpmyadmin. When I attempt to run it phpmyadmin just freezes.=20After a while "Fatal error: Maximum execution time of 300 seconds=20exceeded in /web/myadmin/283/libraries/import.lib.php on line 19"=20appears but no indication as why the command fails. Any advice most=20PHP has limits on the execution (real) time of a web page. Youwent over it. PHP doesn''t know *WHY* it went over the limit, itjust knows that it did. You can raise the limit in php.ini (thenrestart the web server), but that may be just masking the symptomsrather than solving the problem.This query doesn''t look that big or complicated, although it mighthave gotten mangled by all the equal-sign two zero crap at the endof lines. Possibly something else has the table locked? The serveris very busy doing something else?>welcome.INSERT INTO `countries` ( `id` , `country` ) VALUES (''1'',=20''Abkhazia''), (''2'', ''Afghanistan''), (''3'', ''Akrotiri and Dhekelia''),=20(''4'', ''=C5land''), (''5'', ''Albania''), (''6'', ''Algeria''), (''7'', ''American=20Samoa''), (''8'', ''Andorra''), (''9'', ''Angola''), (''10'', ''Anguilla''), (''11'',=20''Antigua and Barbuda ''), (''12'', ''Argentina''), (''13'', ''Armenia''),=20(''14'', ''Aruba''), (''15'', ''Ascension Island''), (''16'', ''Australia''),=20(''17'', ''Austria''), (''18'', ''Azerbaijan''), (''19'', ''Bahamas, The''),=20(''20'', ''Bahrain''), (''21'', ''Bangladesh''), (''22'', ''Barbados ''), (''23'',=20''Belarus''), (''24'', ''Belgium''), (''25'', ''Belize ''), (''26'', ''Benin''),=20(''27'', ''Bermuda''), (''28'', ''Bhutan''), (''29'', ''Bolivia''), (''30'', ''Bosnia=20and Herzegovina''), (''31'', ''Botswana''), (''32'', ''Brazil''), (''33'',=20''Brunei''), (''34'', ''Bulgaria''), (''35'', ''Burkina Faso ''), (''36'',=20''Burundi''), (''37'', ''Cambodia''), (''38'', ''Cameroon''), (''39'', ''Canada''),=20(''40'', ''Cape Verde''), (''41'', ''Cayman Islands''), (''42'', ''Central=20African Republic''), (''43'', ''Chad''), (''44'', ''Chile''), (''45'', ''China''),=20(''46'', ''Christmas Island''), (''47'', ''Cocos Islands''), (''48'',=20''Colombia''), (''49'', ''Comoros''), (''50'', ''Congo, Democratic Republic=20of''), (''51'', ''Congo, Republic of''), (''52'', ''Cook Islands''), (''53'',=20''Costa Rica''), (''54'', ''C=F4te d''Ivoire''), (''55'', ''Croatia''), (''56'',=20''Cuba''), (''57'', ''Cyprus''), (''58'', ''Czech Republic''), (''59'',=20''Denmark''), (''60'', ''Djibouti''), (''61'', ''Dominica''), (''62'', ''Dominican=20Republic ''), (''63'', ''Ecuador''), (''64'', ''Egypt''), (''65'', ''El=20Salvador''), (''66'', ''Equatorial Guinea''), (''67'', ''Eritrea''), (''68'',=20''Estonia''), (''69'', ''Ethiopia''), (''70'', ''Falkland Islands''), (''71'',=20''Faroe Islands''), (''72'', ''Fiji''), (''73'', ''Finland''), (''74'', ''France''),=20(''75'', ''French Polynesia''), (''76'', ''Gabon''), (''77'', ''Gambia, The''),=20(''78'', ''Georgia''), (''79'', ''Germany''), (''80'', ''Ghana''), (''81'',=20''Gibraltar''), (''82'', ''Greece''), (''83'', ''Greenland''), (''84'', ''Grenada=20''), (''85'', ''Guam''), (''86'', ''Guatemala''), (''87'', ''Guernsey''), (''88'',=20''Guinea''), (''89'', ''Guinea-Bissau''), (''90'', ''Guyana''), (''91'', ''Haiti''),=20(''92'', ''Honduras''), (''93'', ''Hong Kong''), (''94'', ''Hungary''), (''95'',=20''Iceland''), (''96'', ''India''), (''97'', ''Indonesia''), (''98'', ''Iran''),=20(''99'', ''Iraq''), (''100'', ''Ireland''), (''101'', ''Isle of Man''), (''102'',=20''Israel''), (''103'', ''Italy''), (''104'', ''Jamaica ''), (''105'', ''Japan ''),=20(''106'', ''Jersey''), (''107'', ''Jordan''), (''108'', ''Kazakhstan''), (''109'',=20''Kenya''), (''110'', ''Kiribati''), (''111'', ''Kosovo''), (''112'', ''Kuwait''),=20(''113'', ''Kyrgyzstan''), (''114'', ''Laos''), (''115'', ''Latvia''), (''116'',=20''Lebanon''), (''117'', ''Lesotho''), (''118'', ''Liberia''), (''119'', ''Libya''),=20(''120'', ''Liechtenstein''), (''121'', ''Lithuania''), (''122'', ''Luxembourg''),=20(''123'', ''Macao''), (''124'', ''Madagascar''), (''125'', ''Malawi''), (''126'',=20''Malaysia ''), (''127'', ''Maldives''), (''128'', ''Mali''), (''129'', ''Malta''),=20(''130'', ''Marshall Islands''), (''131'', ''Mauritania''), (''132'',=20''Mauritius''), (''133'', ''Mayotte''), (''134'', ''Mexico''), (''135'',=20''Micronesia''), (''136'', ''Moldova''), (''137'', ''Monaco''), (''138'',=20''Mongolia ''), (''139'', ''Montenegro''), (''140'', ''Montserrat''), (''141'',=20''Morocco''), (''142'', ''Mozambique''), (''143'', ''Myanmar''), (''144'',=20''Nagorno-Karabakh''), (''145'', ''Namibia''), (''146'', ''Nauru''), (''147'',=20''Nepal''), (''148'', ''Netherlands''), (''149'', ''Netherlands Antilles''),=20(''150'', ''New Caledonia''), (''151'', ''New Zealand ''), (''152'',=20''Nicaragua''), (''153'', ''Niger''), (''154'', ''Nigeria''), (''155'', ''Niue''),=20(''156'', ''Norfolk Island''), (''157'', ''North Korea''), (''158'', ''Northern=20Cyprus''), (''159'', ''Northern Mariana Islands''), (''160'', ''Norway''),=20(''161'', ''Oman''), (''162'', ''Pakistan''), (''163'', ''Palau''), (''164'',=20''Palestine''), (''165'', ''Panama''), (''166'', ''Papua New Guinea''), (''167'',=20''Paraguay''), (''168'', ''Peru''), (''169'', ''Philippines''), (''170'',=20''Pitcairn Islands''), (''171'', ''Poland''), (''172'', ''Portugal''), (''173'',=20''Pridnestrovie''), (''174'', ''Puerto Rico''), (''175'', ''Qatar''), (''176'',=20''Republic of Macedonia''), (''177'', ''Romania ''), (''178'', ''Russia''),=20(''179'', ''Rwanda''), (''180'', ''Saint Helena''), (''181'', ''Saint Kitts and=20Nevis''), (''182'', ''Saint Lucia ''), (''183'', ''Saint Pierre and=20Miquelon''), (''184'', ''Saint Vincent & the Grenadines''), (''185'',=20''Samoa''), (''186'', ''San Marino''), (''187'', ''S=E3o Tom=E9 and Pr=EDncipe''),=20(''188'', ''Saudi Arabia''), (''189'', ''Senegal''), (''190'', ''Serbia''),=20(''191'', ''Seychelles''), (''192'', ''Sierra Leone''), (''193'', ''Singapore''),=20(''194'', ''Slovakia''), (''195'', ''Slovenia''), (''196'', ''Solomon Islands ''),=20(''197'', ''Somalia''), (''198'', ''Somaliland''), (''199'', ''South Africa''),=20(''200'', ''South Korea''), (''201'', ''South Ossetia''), (''202'', ''Spain''),=20(''203'', ''Sri Lanka''), (''204'', ''Sudan''), (''205'', ''Suriname''), (''206'',=20''Svalbard''), (''207'', ''Swaziland''), (''208'', ''Sweden''), (''209'',=20''Switzerland''), (''210'', ''Syria''), (''211'', ''Taiwan''), (''212'',=20''Tajikistan''), (''213'', ''Tanzania''), (''214'', ''Thailand''), (''215'',=20''Timor-Leste''), (''216'', ''Togo''), (''217'', ''Tokelau''), (''218'', ''Tonga''),=20(''219'', ''Trinidad and Tobago''), (''220'', ''Tristan da Cunha''), (''221'',=20''Tunisia''), (''222'', ''Turkey''), (''223'', ''Turkmenistan ''), (''224'',=20''Turks and Caicos Islands''), (''225'', ''Tuvalu ''), (''226'', ''Uganda''),=20(''227'', ''Ukraine ''), (''228'', ''United Arab Emirates ''), (''229'', ''United=20Kingdom''), (''230'', ''United States''), (''231'', ''Uruguay''), (''232'',=20''Uzbekistan''), (''233'', ''Vanuatu''), (''234'', ''Vatican City''), (''235'',=20''Venezuela''), (''236'', ''Vietnam''), (''237'', ''Virgin Islands, British''),=20(''238'', ''Virgin Islands, United States''), (''239'', ''Wallis and=20Futuna''), (''240'', ''Western Sahara''), (''241'', ''Yemen''), (''242'',=20''Zambia''), (''243'', ''Zimbabwe''); ab**********@yahoo.com wrote:I am trying to populate a table with the following insert query runthrough phpmyadmin. When I attempt to run it phpmyadmin just freezes.After a while "Fatal error: Maximum execution time of 300 secondsexceeded in /web/myadmin/283/libraries/import.lib.php on line 19"appears but no indication as why the command fails. Any advice mostwelcome.INSERT INTO `countries` ( `id` , `country` )There are a couple of problems. First, don''t use quotes for your table& field names. Do this instead:INSERT INTO countries (id, country)A couple of other things:Country ID''s 4, 54 & 187 contain high ASCII values, if they don''t importproperly edit those specific rows & paste in again. If it still doesn''twork check your collation.Also, country ID 54 has a single quote within the name, so you may wishto use double-quotes to enclose your values.It was a combination of enclosing the table & field defs in quotes, andhaving a single quote in country 54 along with using single quotes asyour delimiter, that caused the import to fail.ab**********@yahoo.com wrote:I am trying to populate a table with the following insert query runthrough phpmyadmin. When I attempt to run it phpmyadmin just freezes.After a while "Fatal error: Maximum execution time of 300 secondsexceeded in /web/myadmin/283/libraries/import.lib.php on line 19"appears but no indication as why the command fails. Any advice mostwelcome.INSERT INTO `countries` ( `id` , `country` ) VALUES (''1'',''Abkhazia''), (''2'', ''Afghanistan''), (''3'', ''Akrotiri and Dhekelia''),(''4'', ''?land''), (''5'', ''Albania''), (''6'', ''Algeria''), (''7'', ''AmericanSamoa''), (''8'', ''Andorra''), (''9'', ''Angola''), (''10'', ''Anguilla''), (''11'',''Antigua and Barbuda ''), (''12'', ''Argentina''), (''13'', ''Armenia''),(''14'', ''Aruba''), (''15'', ''Ascension Island''), (''16'', ''Australia''),(''17'', ''Austria''), (''18'', ''Azerbaijan''), (''19'', ''Bahamas, The''),(''20'', ''Bahrain''), (''21'', ''Bangladesh''), (''22'', ''Barbados ''), (''23'',''Belarus''), (''24'', ''Belgium''), (''25'', ''Belize ''), (''26'', ''Benin''),(''27'', ''Bermuda''), (''28'', ''Bhutan''), (''29'', ''Bolivia''), (''30'', ''Bosniaand Herzegovina''), (''31'', ''Botswana''), (''32'', ''Brazil''), (''33'',''Brunei''), (''34'', ''Bulgaria''), (''35'', ''Burkina Faso ''), (''36'',''Burundi''), (''37'', ''Cambodia''), (''38'', ''Cameroon''), (''39'', ''Canada''),(''40'', ''Cape Verde''), (''41'', ''Cayman Islands''), (''42'', ''CentralAfrican Republic''), (''43'', ''Chad''), (''44'', ''Chile''), (''45'', ''China''),(''46'', ''Christmas Island''), (''47'', ''Cocos Islands''), (''48'',''Colombia''), (''49'', ''Comoros''), (''50'', ''Congo, Democratic Republicof''), (''51'', ''Congo, Republic of''), (''52'', ''Cook Islands''), (''53'',''Costa Rica''), (''54'', ''C?te d''Ivoire''), (''55'', ''Croatia''), (''56'',''Cuba''), (''57'', ''Cyprus''), (''58'', ''Czech Republic''), (''59'',''Denmark''), (''60'', ''Djibouti''), (''61'', ''Dominica''), (''62'', ''DominicanRepublic ''), (''63'', ''Ecuador''), (''64'', ''Egypt''), (''65'', ''ElSalvador''), (''66'', ''Equatorial Guinea''), (''67'', ''Eritrea''), (''68'',''Estonia''), (''69'', ''Ethiopia''), (''70'', ''Falkland Islands''), (''71'',''Faroe Islands''), (''72'', ''Fiji''), (''73'', ''Finland''), (''74'', ''France''),(''75'', ''French Polynesia''), (''76'', ''Gabon''), (''77'', ''Gambia, The''),(''78'', ''Georgia''), (''79'', ''Germany''), (''80'', ''Ghana''), (''81'',''Gibraltar''), (''82'', ''Greece''), (''83'', ''Greenland''), (''84'', ''Grenada''), (''85'', ''Guam''), (''86'', ''Guatemala''), (''87'', ''Guernsey''), (''88'',''Guinea''), (''89'', ''Guinea-Bissau''), (''90'', ''Guyana''), (''91'', ''Haiti''),(''92'', ''Honduras''), (''93'', ''Hong Kong''), (''94'', ''Hungary''), (''95'',''Iceland''), (''96'', ''India''), (''97'', ''Indonesia''), (''98'', ''Iran''),(''99'', ''Iraq''), (''100'', ''Ireland''), (''101'', ''Isle of Man''), (''102'',''Israel''), (''103'', ''Italy''), (''104'', ''Jamaica ''), (''105'', ''Japan ''),(''106'', ''Jersey''), (''107'', ''Jordan''), (''108'', ''Kazakhstan''), (''109'',''Kenya''), (''110'', ''Kiribati''), (''111'', ''Kosovo''), (''112'', ''Kuwait''),(''113'', ''Kyrgyzstan''), (''114'', ''Laos''), (''115'', ''Latvia''), (''116'',''Lebanon''), (''117'', ''Lesotho''), (''118'', ''Liberia''), (''119'', ''Libya''),(''120'', ''Liechtenstein''), (''121'', ''Lithuania''), (''122'', ''Luxembourg''),(''123'', ''Macao''), (''124'', ''Madagascar''), (''125'', ''Malawi''), (''126'',''Malaysia ''), (''127'', ''Maldives''), (''128'', ''Mali''), (''129'', ''Malta''),(''130'', ''Marshall Islands''), (''131'', ''Mauritania''), (''132'',''Mauritius''), (''133'', ''Mayotte''), (''134'', ''Mexico''), (''135'',''Micronesia''), (''136'', ''Moldova''), (''137'', ''Monaco''), (''138'',''Mongolia ''), (''139'', ''Montenegro''), (''140'', ''Montserrat''), (''141'',''Morocco''), (''142'', ''Mozambique''), (''143'', ''Myanmar''), (''144'',''Nagorno-Karabakh''), (''145'', ''Namibia''), (''146'', ''Nauru''), (''147'',''Nepal''), (''148'', ''Netherlands''), (''149'', ''Netherlands Antilles''),(''150'', ''New Caledonia''), (''151'', ''New Zealand ''), (''152'',''Nicaragua''), (''153'', ''Niger''), (''154'', ''Nigeria''), (''155'', ''Niue''),(''156'', ''Norfolk Island''), (''157'', ''North Korea''), (''158'', ''NorthernCyprus''), (''159'', ''Northern Mariana Islands''), (''160'', ''Norway''),(''161'', ''Oman''), (''162'', ''Pakistan''), (''163'', ''Palau''), (''164'',''Palestine''), (''165'', ''Panama''), (''166'', ''Papua New Guinea''), (''167'',''Paraguay''), (''168'', ''Peru''), (''169'', ''Philippines''), (''170'',''Pitcairn Islands''), (''171'', ''Poland''), (''172'', ''Portugal''), (''173'',''Pridnestrovie''), (''174'', ''Puerto Rico''), (''175'', ''Qatar''), (''176'',''Republic of Macedonia''), (''177'', ''Romania ''), (''178'', ''Russia''),(''179'', ''Rwanda''), (''180'', ''Saint Helena''), (''181'', ''Saint Kitts andNevis''), (''182'', ''Saint Lucia ''), (''183'', ''Saint Pierre andMiquelon''), (''184'', ''Saint Vincent & the Grenadines''), (''185'',''Samoa''), (''186'', ''San Marino''), (''187'', ''S?o Tomé and Príncipe''),(''188'', ''Saudi Arabia''), (''189'', ''Senegal''), (''190'', ''Serbia''),(''191'', ''Seychelles''), (''192'', ''Sierra Leone''), (''193'', ''Singapore''),(''194'', ''Slovakia''), (''195'', ''Slovenia''), (''196'', ''Solomon Islands ''),(''197'', ''Somalia''), (''198'', ''Somaliland''), (''199'', ''South Africa''),(''200'', ''South Korea''), (''201'', ''South Ossetia''), (''202'', ''Spain''),(''203'', ''Sri Lanka''), (''204'', ''Sudan''), (''205'', ''Suriname''), (''206'',''Svalbard''), (''207'', ''Swaziland''), (''208'', ''Sweden''), (''209'',''Switzerland''), (''210'', ''Syria''), (''211'', ''Taiwan''), (''212'',''Tajikistan''), (''213'', ''Tanzania''), (''214'', ''Thailand''), (''215'',''Timor-Leste''), (''216'', ''Togo''), (''217'', ''Tokelau''), (''218'', ''Tonga''),(''219'', ''Trinidad and Tobago''), (''220'', ''Tristan da Cunha''), (''221'',''Tunisia''), (''222'', ''Turkey''), (''223'', ''Turkmenistan ''), (''224'',''Turks and Caicos Islands''), (''225'', ''Tuvalu ''), (''226'', ''Uganda''),(''227'', ''Ukraine ''), (''228'', ''United Arab Emirates ''), (''229'', ''UnitedKingdom''), (''230'', ''United States''), (''231'', ''Uruguay''), (''232'',''Uzbekistan''), (''233'', ''Vanuatu''), (''234'', ''Vatican City''), (''235'',''Venezuela''), (''236'', ''Vietnam''), (''237'', ''Virgin Islands, British''),(''238'', ''Virgin Islands, United States''), (''239'', ''Wallis andFutuna''), (''240'', ''Western Sahara''), (''241'', ''Yemen''), (''242'',''Zambia''), (''243'', ''Zimbabwe'');Despite other comments, the backticks around your table and column namesare fine. They are valid for MySQL.If `id` is a numeric value, you should not have quotes around thenumeric values, i.e. you should have (1, ''Abkhazia'').Also as noted, the entry with value 54 has a single quote in it.Enclosing the values within double quotes is not correct, however - thatis invalid SQL (strings must be enclosed by single quotes).The way to correct this is to have two single quotes in the string, i.e.''C?te d''''Ivoire''The non-ASCII characters (i.e. ''?land'') may or may not be a problem - itdepends on the table definition.I''m not sure why this would give a timeout error, though. It shouldn''ttake long for it to be inserted. I''d recommend you break it up intosmaller chunks and see what happens. You should be able to determine ifthere are other errors in your SQL that we''ve missed.--==================Remove the "x" from my email addressJerry StuckleJDS Computer Training Corp. js*******@attglobal.net================== 这篇关于插入问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 05-27 14:46