anpera.net https://anpera.dyndns.org/phpbb3/ |
|
Datenbank für programm Mentor https://anpera.dyndns.org/phpbb3/viewtopic.php?f=25&t=3650 |
Seite 1 von 1 |
Autor: | Gismo [ Mo 21 Mai, 2007 01:31 ] |
Betreff des Beitrags: | Datenbank für programm Mentor |
ich wollte den sql code in meine daten bank laden leider kam immer dies hierFehler SQL-Befehl: ALTER TABLE `accounts` ADD `ismentor` int( 11 ) UNSIGNED DEFAULT '0' ALTER TABLE `accounts` ADD `hasmentor` int( 11 ) UNSIGNED DEFAULT '0' ALTER TABLE `accounts` ADD `mymentor` int( 11 ) UNSIGNED DEFAULT '0' 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 `accounts` ADD `hasmentor` int(11) UNSIGNED DEFAULT '0' ALTER TABLE' at line 2 was mache ich falsch |
Autor: | MoonDragon [ Mo 21 Mai, 2007 03:14 ] |
Betreff des Beitrags: | |
Du hast nur eines vergessen Gismo bei deinem sql ALTER TABLE `accounts` ADD `ismentor` int( 11 ) UNSIGNED DEFAULT '0' ALTER TABLE `accounts` ADD `hasmentor` int( 11 ) UNSIGNED DEFAULT '0' ALTER TABLE `accounts` ADD `mymentor` int( 11 ) UNSIGNED DEFAULT '0' so hast du es gemacht wenn ich das sehe fehlen da immer am ende ; du kannst das aber auch sorum schreiben ALTER TABLE `accounts` ADD `ismentor` int( 11 ) UNSIGNED DEFAULT '0' ; ALTER TABLE `accounts` ADD `hasmentor` int( 11 ) UNSIGNED DEFAULT '0'; ALTER TABLE `accounts` ADD `mymentor` int( 11 ) UNSIGNED DEFAULT '0': oder sorum ALTER TABLE `accounts` ADD `ismentor` int( 11 ) UNSIGNED DEFAULT '0' , ADD `hasmentor` int( 11 ) UNSIGNED DEFAULT '0' , ADD `mymentor` int( 11 ) UNSIGNED DEFAULT '0' ; ich hoffe das reicht dir als Antwort |
Autor: | Gismo [ Mo 21 Mai, 2007 08:14 ] |
Betreff des Beitrags: | |
Ja danke jetzt geht es |
Autor: | Auric [ Mo 21 Mai, 2007 12:38 ] |
Betreff des Beitrags: | |
mal ne kleine Frage: Welche werte sollen ismentor und hasmentor annehmen können? Kling mir verdächtig nach einem booleanischen Wert (true oder false), für den bei weitem keine (2^32)-1 Mögliche zustände nötig sind, oder? Wenn es sich dabei jedoch um Verweise auf acctids anderer spieler handelt ist INT(11) durchaus berechtigt. Nur so als Hinweis Auric ![]() |
Autor: | Horus [ Di 22 Mai, 2007 13:59 ] |
Betreff des Beitrags: | |
Also, das ganze hatet ich ja gemacht (werde auch sicherlich bald mal was enues dazu machen). Hatte das da vollkommen vergessen. Lediglich "mymentor" sollte int(11) bleiben, da es ein Verweis auf eine Acct-Id ist. |
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |