diff options
| author | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-11 09:12:05 +0100 |
|---|---|---|
| committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-11 09:12:05 +0100 |
| commit | 532cd1e395a637a5e507bc3687a4a64e50e55b30 (patch) | |
| tree | f15d9b5a14e1129aa9b9629d842dcf8f99745d5d /test.sql | |
| parent | ec126de053cd1343e0c5778a56ea58045d0e3170 (diff) | |
| download | jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.tar.gz jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.tar.bz2 jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.zip | |
adding Serialization interface and methods
Diffstat (limited to '')
| -rw-r--r-- | test.sql | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/test.sql b/test.sql deleted file mode 100644 index ae8d13b..0000000 --- a/test.sql +++ /dev/null @@ -1,45 +0,0 @@ ---album -SELECT - al.id as "ID", - al.name as "Title", - ar.name as "Artist", - al.original_year as "Release Year", - SUM(s.time) as "Duration" -FROM album al -JOIN artist ar ON ar.id=al.album_artist -JOIN song s ON s.album=al.id -GROUP BY al.id -INTO OUTFILE '/var/lib/mysql-files/albums.csv' -FIELDS ENCLOSED BY '"' -TERMINATED BY ';' -ESCAPED BY '"' -LINES TERMINATED BY '\r\n'; - ---song -SELECT - s.id as "ID", - s.title as "Title", - ar.name as "Artist", - s.time as "Duration", - s.file as "Content" -FROM song s -JOIN artist ar ON ar.id=s.artist -INTO OUTFILE '/var/lib/mysql-files/songs.csv' -FIELDS ENCLOSED BY '"' -TERMINATED BY ';' -ESCAPED BY '"' -LINES TERMINATED BY '\r\n'; - ---playlist -SELECT - p.id as "ID", - p.name as "Name", - s.title as "Song" -FROM playlist_data pd -JOIN playlist p ON p.id=pd.playlist -JOIN song s ON s.id=pd.object_id -INTO OUTFILE '/var/lib/mysql-files/playlists.csv' -FIELDS ENCLOSED BY '"' -TERMINATED BY ';' -ESCAPED BY '"' -LINES TERMINATED BY '\r\n'; |
