Hacks4wbb by HFW™ (https://pommes.forenoase.de//index.php)
- Programmiersprachenübersicht (https://pommes.forenoase.de//board.php?boardid=87)
--- Programmiersprachen Referenz (https://pommes.forenoase.de//board.php?boardid=82)
------ Sonstiges rund um das WBB (https://pommes.forenoase.de//board.php?boardid=268)
------- Sql (https://pommes.forenoase.de//board.php?boardid=86)
-------- SQL Fehler (https://pommes.forenoase.de//thread.php?threadid=28694)


Geschrieben von jayD am 26.04.2007 um 08:56:

  SQL Fehler

Hallo. Habe ein Problem.
Wenn ich die SQL über phpmyAdmin hochlade, kommt dieser Fehler.

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
SQL-Befehl:

CREATE TABLE bb1_acpmenuitemgroups(
itemgroupid smallint( 5 ) unsigned NOT NULL AUTO_INCREMENT ,
title varchar( 255 ) NOT NULL ,
condition text NOT NULL ,
conditiontype enum( 'OR', 'AND' ) NOT NULL DEFAULT 'OR',
showorder smallint( 5 ) unsigned NOT NULL DEFAULT '0',
acpmode tinyint( 3 ) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY ( itemgroupid )
);

MySQL meldet: Dokumentation
#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 'condition text NOT NULL,
    conditiontype enum('OR','AND') NOT NULL DEFAULT 'OR',' at line 4 


Da ich schon oft ein Backup gemacht habe, kann ich nicht sagen je einen Felher gehabt zu haben. Daher verwundert mich das. Also ich schließe daraus, das die Tabelle "bb1_acpmenuitemgroups" nicht erstellt werden kann. Aber warum. Evtl. könnt ihr mir ja helfen.

Die SQL ist hier erreichbar: LINK



Geschrieben von fraiser am 26.04.2007 um 18:26:

  RE: SQL Fehler

evtl. falsche kolation, per phpmyadmin umstellen.



Geschrieben von jayDs am 26.04.2007 um 21:41:

 

Habe ich schon versucht, leider ohne Erfolg



Geschrieben von alfie am 28.04.2007 um 17:27:

 

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
CREATE TABLE bb1_acpmenuitemgroups(
itemgroupid smallint( 5 ) unsigned NOT NULL AUTO_INCREMENT ,
title varchar( 255 ) NOT NULL ,
`condition` text NOT NULL ,
conditiontype enum( 'OR', 'AND' ) NOT NULL DEFAULT 'OR',
showorder smallint( 5 ) unsigned NOT NULL DEFAULT '0',
acpmode tinyint( 3 ) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY ( itemgroupid )
);


Versuch es mal mit der Abfrage!

alfie



Geschrieben von Tollik am 28.04.2007 um 18:07:

 

hi ich hatte das problem heuite auch, aber jetzt geht es danke


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH