I create partition by list, but not define tablespaces for each PARTITION
. What happens then?:
CREATE TABLE movie_genres (
movie_genre_id INT NOT NULL,
movie_id INT NOT NULL,
genre_id INT NOT NULL,
PRIMARY KEY (movie_genre_id),
FOREIGN KEY (movie_id) REFERENCES movies(movie_id),
FOREIGN KEY (genre_id) REFERENCES GENRES(genre_id),
UNIQUE (movie_id, genre_id)
)
PARTITION BY LIST(GENRE_ID)
( PARTITION Drama VALUES (8),
PARTITION Comedy VALUES (5)
);