Ich versuche gerade gesammelte Daten von einem Spreadsheet in eine MySQL DB zu exportieren - im Spreadsheet habe ich eine Zeile kreiiert die so aussieht, damit ich die Daten möglichst effizient rüberholen kann (sind paar tausend zeilen)
2 Probleme
1. Datum is nicht im Datum Format? (siehe auch unterester Code-Block)
2.
verursacht probleme - wie kann ich das beheben?
meine tabelle sieht so aus im ODS spreadsheet:
SQL Befehl den ich benutzt habe um DB zu kreieren
Fehlermeldung die ich erhalte beim Versuch zu importieren/exportieren
Hat da jemand eine Ahnung was ich berichtigen muss?
Code:
="INSERT INTO `spamurls` VALUES ("&A2&","&B2&","&C2&","&D2&","&E2&","&F2&""&");"
1. Datum is nicht im Datum Format? (siehe auch unterester Code-Block)
2.
Code:
://
Code:
INSERT INTO `spamurls` VALUES (2,http://www.mindmagiclive.com/,magicians toronto ,1,40409,S); INSERT INTO `spamurls` VALUES (3,http://mobilemonopolyreview.easyonlinejobsreview.com/,mobile monopoly review ,1,40409,S); INSERT INTO `spamurls` VALUES (4,http://doubleglazingleeds.org,double glazing leeds ,1,40409,S); INSERT INTO `spamurls` VALUES (5,http://www.wordsworth.co.uk,industrial PC ,1,40409,S); INSERT INTO `spamurls` VALUES (6,http://www.cheapipodnano.org,Cheap iPod Nano ,1,40409,S); INSERT INTO `spamurls` VALUES (7,http://www.semenaxsale.com,semenax review ,1,40409,S);
Code:
2 http://www.mindmagiclive.com/ magicians toronto 1 19.08.10 S 3 http://mobilemonopolyreview.easyonlinejobsreview.com/ mobile monopoly review 1 19.08.10 S 4 http://doubleglazingleeds.org double glazing leeds 1 19.08.10 S 5 http://www.wordsworth.co.uk industrial PC 1 19.08.10 S 6 http://www.cheapipodnano.org Cheap iPod Nano 1 19.08.10 S 7 http://www.semenaxsale.com semenax review 1 19.08.10 S
Code:
CREATE TABLE `spamurls` ( `id` int(11) NOT NULL auto_increment, `url` varchar(150) NOT NULL default '', `keyword` varchar(100) NOT NULL default '', `position` varchar(4) NOT NULL default '', `date` varchar(12) NOT NULL default '', `type` varchar(25) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM
Fehlermeldung die ich erhalte beim Versuch zu importieren/exportieren
Code:
#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 '://www.mindmagiclive.com/,magicians toronto ,1,40409,S)' at line 1
Kommentar