This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:ubuntu:spotifymusictodatabase [2021/12/29 00:49] – lunetikk | linux:ubuntu:spotifymusictodatabase [2021/12/29 00:53] – lunetikk | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Database ===== | ===== Database ===== | ||
- | {{: | + | {{: |
<code mysql spotifymusic.sql> | <code mysql spotifymusic.sql> | ||
Line 35: | Line 35: | ||
CREATE TABLE `track` ( | CREATE TABLE `track` ( | ||
- | `track_id` smallint(5) NOT NULL AUTO_INCREMENT, | ||
`artist_id` smallint(5) NOT NULL DEFAULT ' | `artist_id` smallint(5) NOT NULL DEFAULT ' | ||
`album_id` smallint(5) NOT NULL DEFAULT ' | `album_id` smallint(5) NOT NULL DEFAULT ' | ||
+ | `track_id` smallint(5) NOT NULL AUTO_INCREMENT, | ||
`track_name` char(255) DEFAULT NULL, | `track_name` char(255) DEFAULT NULL, | ||
`track_popularity` int(20) DEFAULT NULL, | `track_popularity` int(20) DEFAULT NULL, | ||
Line 45: | Line 45: | ||
PRIMARY KEY (track_id) | PRIMARY KEY (track_id) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
- | < | + | |
+ | </code> |