Seite 1 von 1
[ SQL ] - Wie benutzen?
Verfasst: 17.03.2007 15:23
von Locou
Hallo,
ich will die Multiple Choice Voting Mod installieren. Also erstes soll ich den "Befehl" [ SQL ] ausführen.
Code: Alles auswählen
#
#-----[ SQL ]----------------------------------------------
#
ALTER TABLE phpbb_vote_desc ADD vote_choice tinyint(1) not null;
INSERT INTO phpbb_config VALUES ('multiple_voting', '0');
Wo? Wie? mache ich das?

Re: [ SQL ] - Wie benutzen?
Verfasst: 17.03.2007 15:47
von gloriosa
Hallo,
eigentlich ganz simpel. phpMyAdmin starten, auf den Reiter/Button
SQL klicken, in das sich darauf öffnende Eingabefeld den Code
Locou hat geschrieben:Code: Alles auswählen
ALTER TABLE phpbb_vote_desc ADD vote_choice tinyint(1) not null;
INSERT INTO phpbb_config VALUES ('multiple_voting', '0');
eingeben (kopieren) und auf OK klicken. Das war es.
Steht auch in Pos. 12 der >>> KB:18 <<< !
Weiterhin gibt es die, viel zu selten benutzte, boardeigene Funktion [ externes Bild ] Suchen und den Bereich Dokumentation um Informationen zu finden. 
Verfasst: 17.03.2007 16:37
von Locou
Also ich bin jetzt bei phpmyadmin angekommen.
Wenn ich jetzt auf den SQL button klicke bekomme ich ein feld.
Dort trage ich
Code: Alles auswählen
ALTER TABLE phpbb_vote_desc ADD vote_choice tinyint(1) not null;
INSERT INTO phpbb_config VALUES ('multiple_voting', '0');
ein. Klicke auf OK und bekomme diese Meldung:
Code: Alles auswählen
Fehler
SQL-Befehl:
ALTER TABLE phpbb_vote_desc ADD vote_choice tinyint( 1 ) NOT NULL
MySQL meldet: Dokumentation
#1060 - Duplicate column name 'vote_choice'
Verfasst: 17.03.2007 16:40
von redbull254
Hallo,
Duplicate column name 'vote_choice'
Das ist nicht weiter wichtig, Du hast das schon drin gehabt.
Es sollte aber alles funktionieren.
