#1 (permalink)  
Alt 23.08.2007, 09:39
Neuer Benutzer
 
Registriert seit: 23.08.2007
Beiträge: 8
Standard Kleines MySQL Problem... brauche HILFE

Hallo Leute, erst mal Guten Morgen und so..... habe ne Ausbildung als FA-Anwendungsentwicklung angefangen und habe die Aufgabe bekommen für eine Artikelverwaltung eine Datenbankstruktur zu machen das ganze per DB Designer 4 (vll kennt das ja jemand) habe ich auch alles gemacht und sieht sehr gut aus, doch wenn ich jetzt den MySQL Text der Struktur unter phpMyAdmin als SQL Tag eingebe bekomme ich einen Fehler, und zwar: 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 ')
)' at line 5


Hier mal der komplette MySQL Text:

CREATE TABLE article (
art_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
categories_cat_id SMALLINT UNSIGNED NOT NULL,
art_name VARCHAR(255) NOT NULL,
art_description VARCHAR(255) NOT NULL,
art_long_description TEXT NULL,
art_price FLOAT NOT NULL,
art_units SMALLINT UNSIGNED NOT NULL,
art_date DATETIME NOT NULL,
PRIMARY KEY(art_id),
INDEX article_FKIndex1(categories_cat_id)
);

CREATE TABLE article_to_orders (
article_art_id SMALLINT UNSIGNED NOT NULL,
orders_order_id SMALLINT UNSIGNED NOT NULL,
art_units INTEGER UNSIGNED NULL,
INDEX article_to_orders_FKIndex1(orders_order_id),
INDEX article_to_orders_FKIndex2(article_art_id)
);

CREATE TABLE categories (
cat_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
cat_name VARCHAR(255) NOT NULL,
PRIMARY KEY(cat_id),
UNIQUE INDEX categories_index1172()
);

CREATE TABLE customers (
cus_id SMALLINT UNSIGNED NOT NULL,
name VARCHAR(64) NOT NULL,
givenname VARCHAR(148) NOT NULL,
adress VARCHAR(255) NOT NULL,
zip MEDIUMINT UNSIGNED NOT NULL,
city VARCHAR(255) NOT NULL,
mail VARCHAR(255) NULL,
PRIMARY KEY(cus_id)
);

CREATE TABLE orders (
order_id SMALLINT UNSIGNED NOT NULL,
customers_cus_id SMALLINT UNSIGNED NOT NULL,
date DATETIME NULL,
payment_type INTEGER UNSIGNED NULL,
PRIMARY KEY(order_id),
INDEX orders_FKIndex1(customers_cus_id)
);

Vielleicht weiß ja einer von euch wieso diese Fehlermeldung auftaucht und kann es mir erklären.... Habe ka wieso....

Vielen Dank und gruß
Pillemon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 23.08.2007, 10:15
Neuer Benutzer
 
Registriert seit: 23.08.2007
Beiträge: 8
Standard

kann geschlossen werden.... habe den fehler selber gefunden..... der unique index war keinem eintrag in der tabelle zugeortnent
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
brauche, hilfe, kleines, mysql, problem

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Kleines Problem mit JavaScript marcolein Installation und Konfiguration 6 06.02.2009 21:36
Brauche dringend Hilfe! URL nicht direkt erreichbar beatrunner Installation und Konfiguration 1 27.05.2007 18:38
Xt 304SP2.1 MYSQL 5 Problem backyardfactory Installation und Konfiguration 0 22.05.2007 17:25


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:34 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand