product_categories
4 rows where product_id = "my3h4pzbgc"
This data as json, CSV (advanced)
| Link | product_id | category_id |
|---|---|---|
| my3h4pzbgc,18 | Nations Bella Flor my3h4pzbgc | White 18 |
| my3h4pzbgc,30 | Nations Bella Flor my3h4pzbgc | Floral Arrangements 30 |
| my3h4pzbgc,55 | Nations Bella Flor my3h4pzbgc | Norwegian National Day 55 |
| my3h4pzbgc,96 | Nations Bella Flor my3h4pzbgc | Corporate Solutions 96 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE product_categories (
product_id TEXT NOT NULL,
category_id INTEGER NOT NULL,
PRIMARY KEY (product_id, category_id),
FOREIGN KEY (product_id) REFERENCES products(id),
FOREIGN KEY (category_id) REFERENCES categories(id)
);