Jan Huss: Shopdatenbankstruktur

Beitrag lesen

Hallo,

die Struktur hängt von Deinem Anliegen ab; bei mir würde sie zum Beispiel so aussehen:

t01categories:
t01prnb, t01mother, t01position, t01name
1, 0, 1, Haupt1
2, 0, 2, Haupt2
3, 1, 1, Haupt1-Unter1
4, 1, 2, Haupt1-Unter2
5, 2, 1, Haupt2-Unter1
6, 0, 3, Haupt3
...

Jede Kategorie hat eine mother. Das ist der Primärschlüssel des Vorgängers. Dazu die Position, welche sagt an welcher Position der Eintrag steht.

t02artikles:
t02prnb, t02mother, t02position, t02data
1, 1, 1, 1. Artikel in Haupt1
2, 4, 1, 1. Artikel in Haupt1-Unter1

Damit solltest Du ganz flexibel sein.

Gruß Jan