Hallo Leute. Habe folgendes Problem:
Wenn ich bei phpmyadmin unter "SQL" folgende Befehle geben will
Code
ALTER TABLE `tankstellen` ADD `Kasse` int(12)
ALTER TABLE `tankstellen` ADD `Preis` int(12)
ALTER TABLE `tankstellen` ADD `PreispLiter` int(12)
ALTER TABLE `tankstellen` ADD `Inhalt` int(12)
ALTER TABLE `tankstellen` ADD `Groesse` int(12)
ALTER TABLE `tankstellen` ADD `Besitzer` int(24)
ALTER TABLE `tankstellen` ADD `Beschreibung` varchar(150)
ALTER TABLE `tankstellen` ADD `TankPos1X` float(12)
CREATE TABLE IF NOT EXISTS `tankstellen` (
`ID` int(12) NOT NULL,
`Kasse` int(12) NOT NULL,
`Preis` int(12) NOT NULL,
`PreispLiter` int(12) NOT NULL,
`Inhalt` int(12) NOT NULL,
`Groesse` int(12) NOT NULL,
`Besitzer` varchar(24) NOT NULL,
`Teilhaber` varchar(24) NOT NULL,
`Level` int(12) NOT NULL,
`Interior` int(12) NOT NULL,
`Owned` int(12) NOT NULL,
`X` float NOT NULL,
`Y` float NOT NULL,
`Z` float NOT NULL,
`Beschreibung` varchar(150) NOT NULL,
`TankPos1X` float NOT NULL,
`TankPos1Y` float NOT NULL,
`TankPos1Z` float NOT NULL,
`TankPos2X` float NOT NULL,
`TankPos2Y` float NOT NULL,
`TankPos2Z` float NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `tankstellen` (`ID` int(12)) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO `tankstellen` (`ID`, `Kasse`, `Preis`, `PreispLiter`, `Inhalt`, `Groesse`, `Besitzer`, `Teilhaber`, `Level`, `Interior`, `Owned`, `X`, `Y`, `Z`, `Beschreibung`, `TankPos1X`, `TankPos1Y`, `TankPos1Z`, `TankPos2X`, `TankPos2Y`, `TankPos2Z`) VALUES
(0, 0, 1, 15, 10000, 10000, 'Niemand', 'Niemand', 48, 0, 0, 1958.89, 1344.33, 15.3746, '-', 1961.4, 1344.04, 15.3746, 1968.47, 1343.95, 15.4326);
CREATE TABLE `datenbank` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`Name` varchar(128) NOT NULL,
`Passwort` varchar(128) NOT NULL,
`Team` int(11) NOT NULL,
`Geld` int(11) NOT NULL,
`Admin` int(11) NOT NULL,
`Wanteds` int(11) NOT NULL,
`Score` int(11) NOT NULL,
`BKillstreek` int(11) NOT NULL,
`Spielminuten` int(11) NOT NULL,
`Spielzeit` int(11) NOT NULL,
`Tode` int(11) NOT NULL,
`Morde` int(11) NOT NULL,
`Eingeloggt` int(11) NOT NULL,
`Gebannt` int(11) NOT NULL,
`KillsSawnOff` int(11) NOT NULL,
`KillsMp5` int(11) NOT NULL,
`KillsSniper` int(11) NOT NULL,
`KillsMesser` int(11) NOT NULL,
`KillsShotgun` int(11) NOT NULL,
`KillsDeagle` int(11) NOT NULL,
`KillsM4` int(11) NOT NULL,
`KillsMinigun` int(11) NOT NULL,
`Medalien` int(11) NOT NULL,
`Medalie1` int(11) NOT NULL,
`Medalie2` int(11) NOT NULL,
`Medalie3` int(11) NOT NULL,
`Medalie4` int(11) NOT NULL,
`Medalie5` int(11) NOT NULL,
`Medalie6` int(11) NOT NULL,
`Medalie7` int(11) NOT NULL,
`Medalie8` int(11) NOT NULL,
`Medalie9` int(11) NOT NULL,
`Medalie10` int(11) NOT NULL,
`Medalie11` int(11) NOT NULL,
`Medalie12` int(11) NOT NULL,
`Medalie13` int(11) NOT NULL,
`Medalie14` int(11) NOT NULL,
`Medalie15` int(11) NOT NULL,
`Medalie16` int(11) NOT NULL,
`Medalie17` int(11) NOT NULL,
`Medalie18` int(11) NOT NULL,
`Medalie19` int(11) NOT NULL,
`Medalie20` int(11) NOT NULL,
`Medalie21` int(11) NOT NULL,
`Medalie22` int(11) NOT NULL,
`Medalie23` int(11) NOT NULL,
`Medalie24` int(11) NOT NULL,
`Medalie25` int(11) NOT NULL,
`Medalie26` int(11) NOT NULL,
`Medalie27` int(11) NOT NULL,
`Medalie28` int(11) NOT NULL,
`Medalie29` int(11) NOT NULL,
`Medalie30` int(11) NOT NULL,
`Medalie31` int(11) NOT NULL,
`Medalie32` int(11) NOT NULL,
`Medalie33` int(11) NOT NULL,
`Medalie34` int(11) NOT NULL,
`Medalie35` int(11) NOT NULL,
`Medalie36` int(11) NOT NULL,
`Medalie37` int(11) NOT NULL,
`Medalie38` int(11) NOT NULL,
`Medalie39` int(11) NOT NULL,
`Medalie40` int(11) NOT NULL,
`Medalie41` int(11) NOT NULL,
`Medalie42` int(11) NOT NULL,
`Medalie43` int(11) NOT NULL,
`Medalie44` int(11) NOT NULL,
`Medalie45` int(11) NOT NULL,
`Driftpunkte` int(11) NOT NULL,
`Driftstreek` int(11) NOT NULL,
`Bantag` varchar(128) NOT NULL,
`Banner` varchar(128) NOT NULL,
`Banngrund` varchar(128) NOT NULL,
`EinloggCount` int(11) NOT NULL,
`PickupCount` int(11) NOT NULL,
`WaffenCount` int(11) NOT NULL,
`KickCount` int(11) NOT NULL,
`BefehlCount` int(11) NOT NULL,
`TextCount` int(11) NOT NULL,
`LetterCount` int(11) NOT NULL,
`PortCount` int(11) NOT NULL,
`Registrierdatum` int(11) NOT NULL,
`LetzterLogin` int(11) NOT NULL,
`LoginBonus` int(11) NOT NULL,
`AlterName` varchar(128) NOT NULL,
`MedalienTog` int(11) NOT NULL,
`PremiumRang` int(11) NOT NULL,
`TachoTyp` int(11) NOT NULL,
`Muted` int(11) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
Alles anzeigen
bekomme ich folgende Fehlermeldung:
Code
MySQL meldet:
#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 'ALTER TABLE `tankstellen` ADD `Preis` int(12)
ALTER TABLE `tankstellen` ADD `Pr' at line 2
Alles anzeigen
Ich bin ehrlich und sage dass ich in MySQL keine Erfahrung habe, dennoch möchte ich das Script zum laufen bekommen um es mit meiner Community spielen zu können.
mfG
Phillip