Foros del Web » Programación para mayores de 30 ;) » Bases de Datos General » Mysql »

erro:#1064

Estas en el tema de erro:#1064 en el foro de Mysql en Foros del Web. Hola amigos estoy intentando insertar datos en una tabla de my BD pero me da este error: #1064 - You have an error in your ...
  #1 (permalink)  
Antiguo 12/04/2010, 02:40
 
Fecha de Ingreso: junio-2008
Mensajes: 292
Antigüedad: 15 años, 10 meses
Puntos: 4
erro:#1064

Hola amigos estoy intentando insertar datos en una tabla de my BD pero me da este error:
#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 '' at line 251
Estoy buscando pero no encuentro el fallo "teoricamente" esta en la ultima linea este es la sentencia sql que estoy usando
  #2 (permalink)  
Antiguo 12/04/2010, 02:42
 
Fecha de Ingreso: junio-2008
Mensajes: 292
Antigüedad: 15 años, 10 meses
Puntos: 4
Respuesta: erro:#1064

Código PHP:
INSERT INTO `ps_state` (`id_state`, `id_country`, `id_zone`, `name`, `iso_code`, `tax_behavior`, `active`) VALUES 
(143'17''8''Aberdeen City''ACY''0''1'),
(
144'17''8''Aberdeenshire''ABE''0''1'),
(
145'17''8''Angus''ANG''0''1'),
(
146'17''8''Antrim''ANT''0''1'),
(
147'17''8''Ards''ARD''0''1'),
(
148'17''8''Argyll and Bute''AGB''0''1'),
(
149'17''8''Armagh''ARM''0''1'),
(
150'17''8''Avon''AVN''0''1'),
(
151'17''8''Ballymena''BLY''0''1'),
(
152'17''8''Ballymoney''BLL''0''1'),
(
153'17''8''Banbridge''BAN''0''1'),
(
154'17''8''Barking and Dagenham''BDM''0''1'),
(
155'17''8''Barnet''BNT''0''1'),
(
156'17''8''Barnsley''BAR''0''1'),
(
157'17''8''Bath and North East Somerset''SOM''0''1'),
(
158'17''8''Bedfordshire''BED''0''1'),
(
159'17''8''Belfast''BEL''0''1'),
(
160'17''8''Berkshire''BKS''0''1'),
(
161'17''8''Bexley''BEX''0''1'),
(
162'17''8''Birmingham''BRG''0''1'),
(
163'17''8''Blackburn with Darwen''BDW''0''1'),
(
164'17''8''Blackpool''BPO''0''1'),
(
165'17''8''Blaenau Gwent''GWE''0''1'),
(
166'17''8''Bolton''BOL''0''1'),
(
167'17''8''Bournemouth''BMT''0''1'),
(
168'17''8''Bracknell Forest''BKF''0''1'),
(
169'17''8''Bradford''BRF''0''1'),
(
170'17''8''Brent''BRE''0''1'),
(
171'17''8''Bridgend''BRI''0''1'),
(
172'17''8''Brighton and Hove''BAH''0''1'),
(
173'17''8''Bristol, City of''COB''0''1'),
(
174'17''8''Bromley''BRO''0''1'),
(
175'17''8''Buckinghamshire''BUC''0''1'),
(
176'17''8''Bury''BUR''0''1'),
(
177'17''8''Caerphilly''CAE''0''1'),
(
178'17''8''Calderdale''CAL''0''1'),
(
179'17''8''Cambridgeshire''CMB''0''1'),
(
180'17''8''Camden''CAM''0''1'),
(
181'17''8''Cardiff''CAF''0''1'),
(
182'17''8''Carmarthenshire''CAR''0''1'),
(
183'17''8''Carrickfergus''CRR''0''1'),
(
184'17''8''Castlereagh''CAT''0''1'),
(
185'17''8''Central''CEN''0''1'),
(
186'17''8''Ceredigion''CER''0''1'),
(
187'17''8''Cheshire''CHE''0''1'),
(
188'17''8''Clackmannanshire''CLA''0''1'),
(
189'17''8''Cleveland''CLV''0''1'),
(
190'17''8''Clwyd''CLW''0''1'),
(
191'17''8''Coleraine''COL''0''1'),
(
192'17''8''Conwy''CON''0''1'),
(
193'17''8''Cookstown''COO''0''1'),
(
194'17''8''Cornwall''COR''0''1'),
(
195'17''8''Coventry''CON''0''1'),
(
196'17''8''Craigavon''CRI''0''1'),
(
197'17''8''Croydon''CRO''0''1'),
(
198'17''8''Cumbria''CUM''0''1'),
(
199'17''8''Darlington''DAR''0''1'),
(
200'17''8''Denbighshire''DEG''0''1'),
(
201'17''8''Derby''DRB''0''1'),
(
202'17''8''Derbyshire''DSH''0''1'),
(
203'17''8''Derry''DRR''0''1'),
(
204'17''8''Devon''DVN''0''1'),
(
205'17''8''Doncaster''DOC''0''1'),
(
206'17''8''Dorset''DOR''0''1'),
(
207'17''8''Down''DON''0''1'),
(
208'17''8''Dudley''DUD''0''1'),
(
209'17''8''Dumfries and Galloway''GAL''0''1'),
(
210'17''8''Dundee City''DND''0''1'),
(
211'17''8''Dungannon''DNG''0''1'),
(
212'17''8''Durham''DUR''0''1'),
(
213'17''8''Dyfed''DYE''0''1'),
(
214'17''8''Ealing''EAL''0''1'),
(
215'17''8''East Ayrshire''AYS''0''1'),
(
216'17''8''East Dunbartonshire''DUN''0''1'),
(
217'17''8''East Renfrewshire''REN''0''1'),
(
218'17''8''East Riding of Yorkshire''RYK''0''1'),
(
219'17''8''East Sussex''SUS''0''1'),
(
220'17''8''Edinburgh, City of''EDN''0''1'),
(
221'17''8''Eilean Siar''EIL''0''1'),
(
222'17''8''Enfield''ENF''0''1'),
(
223'17''8''Essex''ESK''0''1'),
(
224'17''8''Falkirk''FLK''0''1'),
(
225'17''8''Fermanagh''FER''0''1'),
(
266'17''8''Fife''FIF''0''1'),
(
267'17''8''Flintshire''FLI''0''1'),
(
268'17''8''Gateshead''GAT''0''1'),
(
269'17''8''Glasgow City''GCY''0''1'),
(
270'17''8''Gloucestershire''GLO''0''1'),
(
271'17''8''Grampian''GRM''0''1'),
(
272'17''8''Greater London''LND''0''1'),
(
272'17''8''Greater Manchester''MAC''0''1'),
(
273'17''8''Greenwich''GRE''0''1'),
(
274'17''8''Gwent''GWN''0''1',
(
275'17''8''Gwynedd''GWY''0''1'),
(
276'17''8''Hackney''HAC''0''1'),
(
277'17''8''Halton''HAL''0''1'),
(
278'17''8''Hammersmith and Fulham''HAF''0''1'),
(
279'17''8''Hampshire''HAP''0''1'),
(
280'17''8''Haringey''HAR''0''1'),
(
281'17''8''Harrow''HAR''0''1'),
(
282'17''8''Hartlepool''HTL'),
(
283'17''8''Havering''HAV''0''1'),
(
284'17''8''Hereford and Worcester''HAW''0''1'),
(
285'17''8''Herefordshire''HSH''0''1'),
(
286'17''8''Hertford''HER''0''1'),
(
287'17''8''Highland''HIG''0''1'),
(
288'17''8''Hillingdon''HIL''0''1'),
(
289'17''8''Hounslow''HOS''0''1'),
(
290'17''8''Humberside''HUM''0''1'),
(
291'17''8''Inverclyde''INV''0''1'),
(
292'17''8''Isle of Anglesey''ISL''0''1'),
(
293'17''8''Isle of Wight''WIG''0''1'),
(
294'17''8''Islington''ISL''0''1'),
(
295'17''8''Kensington and Chelsea''CHL''0''1'),
(
296'17''8''Kent''KNT''0''1'),
(
297'17''8''Kingston upon Hull, City of''HCY''0''1'),
(
298'17''8''Kingston upon Thames''KUT''0''1'),
(
299'17''8''Kirklees''KIR''0''1'),
(
300'17''8''Knowsley''KNO''0''1'),
(
301'17''8''Lambeth''LAM''0''1'),
(
302'17''8''Lancashire''LAN''0''1'),
(
303'17''8''Larne''LAR''0''1'),
(
304'17''8''Leeds''LED''0''1'),
(
305'17''8''Leicester''LEI''0''1'),
(
306'17''8''Leicestershire''LIC''0''1'),
(
307'17''8''Lewisham''LWS''0''1'),
(
308'17''8''Limavady''LIM''0''1'),
(
309'17''8''Lincolnshire''LSH''0''1'),
(
310'17''8''Lisburn''LSB''0''1'), 
  #3 (permalink)  
Antiguo 12/04/2010, 02:42
 
Fecha de Ingreso: junio-2008
Mensajes: 292
Antigüedad: 15 años, 10 meses
Puntos: 4
Respuesta: erro:#1064

Código PHP:
(311'17''8''Liverpool''LVP''0''1'),
(
312'17''8''London, City of''LND''0''1'),
(
313'17''8''Lothian''LTN''0''1'),
(
314'17''8''Luton''LTN''0''1'),
(
315'17''8''Magherafelt''MAG''0''1'),
(
316'17''8''Manchester''MAC''0''1'),
(
317'17''8''Medway''MED''0''1'),
(
318'17''8''Merseyside''MER''0''1'),
(
319'17''8''Merthyr Tydfil''MRT''0''1'),
(
320'17''8''Merton''MER''0''1'),
(
321'17''8''Mid Glamorgan''MGL''0''1'),
(
322'17''8''Middlesbrough''MLS''0''1'),
(
323'17''8''Midlothian''MID''0''1'),
(
324'17''8''Milton Keynes''MIL''0''1'),
(
325'17''8''Monmouthshire''MOR''0''1'),
(
326'17''8''Moray''MRY''0''1'),
(
327'17''8''Moyle''MYL''0''1'),
(
328'17''8''Neath Port Talbot''NPT''0''1'),
(
329'17''8''Newcastle upon Tyne''NUT''0''1'),
(
330'17''8''Newham''NWH''0''1'),
(
331'17''8''Newport''NPT''0''1'),
(
332'17''8''Newry and Mourne''NEY''0''1'),
(
333'17''8''Newtownabbey''NWT''0''1'),
(
334'17''8''Norfolk''NFL''0''1'),
(
335'17''8''North Ayrshire''NAY''0''1'),
(
336'17''8''North Down''NDW''0''1'),
(
337'17''8''North East Lincolnshire''NEL''0''1'),
(
338'17''8''North Lanarkshire''NLN''0''1'),
(
339'17''8''North Lincolnshire''NLC''0''1'),
(
340'17''8''North Somerset''NSM''0''1'),
(
341'17''8''North Tyneside''NTN''0''1'),
(
342'17''8''North Yorkshire''NYK''0''1'),
(
343'17''8''Northamptonshire''NSH''0''1'),
(
344'17''8''Northumberland''NLD''0''1'),
(
345'17''8''Nottingham''NTG''0''1'),
(
346'17''8''Nottinghamshire''NOT''0''1'),
(
347'17''8''Oldham''OLD''0''1'),
(
348'17''8''Omagh''OMA''0''1'),
(
349'17''8''Orkney''ORK''0''1'),
(
350'17''8''Oxfordshire''OXF''0''1'),
(
351'17''8''Pembrokeshire''PEM''0''1'),
(
352'17''8''Perth and Kinross''PER''0''1'),
(
353'17''8''Peterborough''PET''0''1'),
(
354'17''8''Plymouth''PLY''0''1'),
(
355'17''8''Poole''POO''0''1'),
(
356'17''8''Portsmouth''PSM''0''1'),
(
357'17''8''Powys''POW''0''1'),
(
358'17''8''Reading''RAD''0''1'),
(
359'17''8''Redbridge''RBG''0''1'),
(
360'17''8''Redcar and Cleveland''RAC''0''1'),
(
361'17''8''Renfrewshire''RNF''0''1'),
(
362'17''8''Rhondda Cynon Taff''RHO''0''1'),
(
363'17''8''Richmond upon Thames''RIC''0''1'),
(
364'17''8''Rochdale''ROC''0''1'),
(
365'17''8''Rotherham''ROT''0''1'),
(
366'17''8''Rutland''RUT''0''1'),
(
367'17''8''Salford''SAL''0''1'),
(
368'17''8''Sandwell''SAW''0''1'),
(
369'17''8''Scottish Borders''SCB''0''1'),
(
370'17''8''The Sefton''TSF''0''1'),
(
371'17''8''Sheffield''SHE''0''1'),
(
372'17''8''Shetland Islands''STI''0''1'),
(
373'17''8''Shropshire''SHO''0''1'),
(
374'17''8''Slough''SLO''0''1'),
(
375'17''8''Solihull''SOL''0''1'),
(
376'17''8''Somerset''SMS''0''1'),
(
377'17''8''South Ayrshire''SAY''0''1'),
(
378'17''8''South Glamorgan''SGM''0''1'),
(
379'17''8''South Gloucestershire''SGL''0''1'),
(
380'17''8''South Lanarkshire''SLK''0''1'),
(
381'17''8''South Tyneside''STN''0''1'),
(
382'17''8''South Yorkshire''SYV''0''1'),
(
383'17''8''Southampton''STH''0''1'),
(
384'17''8''Southend-on-Sea''SOS''0''1'),
(
385'17''8''Southwark''SOU''0''1'),
(
386'17''8''St. Helens''SHL''0''1'),
(
387'17''8''Staffordshire''STF''0''1'),
(
388'17''8''Stirling''STI''0''1'),
(
390'17''8''Stockton-on-Tees''SOT''0''1'),
(
391'17''8''Stoke-on-Trent''ST''0''1'),
(
392'17''8''Strabane''STB''0''1'),
(
393'17''8''Strathclyde''STR''0''1'),
(
394'17''8''Suffolk''SUF''0''1'),
(
395'17''8''Sunderland''SUN''0''1'),
(
396'17''8''Surrey''SRY''0''1'),
(
397'17''8''Sutton''STT''0''1',
(
398'17''8''Swansea''SWA''0''1'),
(
399'17''8''Swindon''SWI''0''1'),
(
400'17''8''Tameside''TAM''0''1'),
(
401'17''8''Tayside''TAY''0''1'),
(
402'17''8''Telford and Wrekin''TAW''0''1'),
(
403'17''8''Thurrock''TK''0''1'),
(
404'17''8''Torbay''TY''0''1'),
(
405'17''8''Torfaen''TF''0''1'),
(
406'17''8''Tower Hamlets''TH''0''1'),
(
407'17''8''Trafford''TRF''0''1'),
(
408'17''8''Tyne and Wear''TW''0''1'),
(
409'17''8''Vale of Glamorgan, The''VG''0''1'),
(
410'17''8''Wakefield''WFL''0''1'),
(
411'17''8''Walsall''WLL''0''1'),
(
412'17''8''Waltham Forest''WLF''0''1'),
(
413'17''8''Wandsworth''WND''0''1'),
(
414'17''8''Warrington''WRR''0''1'),
(
415'17''8''Warwickshire''WW''0''1'),
(
416'17''8''West Berkshire''WBS''0''1'),
(
417'17''8''West Dunbartonshire''WBK''0''1'),
(
418'17''8''West Glamorgan''WGL''0''1'),
(
419'17''8''West Lothian''WLH''0''1'),
(
420'17''8''West Midlands''WMD''0''1'),
(
421'17''8''West Sussex''WS''0''1'),
(
422'17''8''West Yorkshire''WY''0''1'),
(
423'17''8''Westminster''WE''0''1'),
(
424'17''8''Wigan''WN''0''1'),
(
425'17''8''Wiltshire''WL''0''1'),
(
426'17''8''Windsor and Maidenhead''WM''0''1'),
(
427'17''8''Wirral''WR''0''1'),
(
428'17''8''Wokingham''WG''0''1'),
(
429'17''8''Wolverhampton''WT''0''1'),
(
430'17''8''Worcestershire''WS''0''1'),
(
431'17''8''Wrexham''WH''0''1'),
(
432'17''8''York''YK''0''1'); 
  #4 (permalink)  
Antiguo 12/04/2010, 07:21
Avatar de huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: erro:#1064

Fijate en el registro con id_state 274 que falta cerrar un parentesis.
En el registro 282 solo le pasas 4 columnas, cuando deben ser 6 como todos los casos.

Como recomendación, puedes ir pasando los datos por grupos pequeños y asi encontrar el error. solo revisé la primera parte de los datos, ya tu revisas el resto.

saludos ghosty
__________________
Without data, You are another person with an opinion.
W. Edwads Deming
  #5 (permalink)  
Antiguo 12/04/2010, 09:50
 
Fecha de Ingreso: junio-2008
Mensajes: 292
Antigüedad: 15 años, 10 meses
Puntos: 4
Respuesta: erro:#1064

Gracias makina...seguire tu consejo

Etiquetas: Ninguno
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:15.