我的 db.movies 中有 5 个表。像这样:
db.movies
id | title | plot
------------------
1 | matrix | ddd
db.aka
id | movie_id | aka_title | aka_country
----------------------------------------
1 | 1 | neo | usa
db.genre
id | genre_id | movie_id
------------------------
1 | 1 | 1
2 | 2 | 1
db.genre_name
id | genre_name
---------------
1 | sci-fi
2 | action
db.tags
id | movie_id | keyword
-----------------------
1 | 1 | hacker
2 | 1 | computer
如何像这样创建 db.movies 表:
db.movies
id | title | plot | genre | aka | aka_country | tags
1 | matrix | ddd | sci-fi, action | neo | usa | hacker, computer
我怎样才能做到这一点?谢谢!