Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
SpaltedefaultTypNullBeschreibung
products_id int(11)NeinProdukt ID: siehe: "_products"."products_id"
categories_id int(11)NeinProdukt ID: siehe: "_categories"."categories_id"
master_linkNulltinyint(1)Ja

1 od. 0:

1: Hauptkategorie ( darf jeder Kategorie nur ein mal zugewiesen werden )

2: "Weitere Kategorien / verlinkung" ( kann beliebig oft zugewiesen werden )

Beispiel:

Kategorie 5 wird dem Produkt 11 als Hauptkategorie zugewiesen und in Kategorie 2 und 5 verlinkt

Code Block
languagesql
INSERT INTO `xt_products_to_categories` (
   `products_id`, 
   `categories_id`, 
   `master_link`
) VALUES 
(
   11, 
   5,
   1
),(
   11,
   2,
   0
),(
   11,
   5,
   0
);