relational database - How to relate tables in Mysql -



relational database - How to relate tables in Mysql -

i making music download website. in there 3 tables named song_tbl, artist_tbl, album_tbl. song_tbl

artist_tbl

album_tbl

every song has artist. problem songs have more 1 artist (example: song2 may have 2 artist=petersn , artist 3). how can manage that. give thanks help.

you need have table song_artist_tbl links songs artists. should have 2 columns: song_id , artist_id, , if song 2 linked artists 2 , 3, have :

song_artist_tbl song_id artist_id 2 2 2 3

then can remove artist_id column song_tbl table

mysql relational-database

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -