1 Star 0 Fork 1

MicroGateGroup/chinook_system

forked from DaviesGit/chinook_system 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
create_view.sql 825 Bytes
一键复制 编辑 原始数据 按行查看 历史
Davies 提交于 2020-09-26 23:07 . Project migration
.head on
PRAGMA table_info(Artist);
PRAGMA table_info(Album);
PRAGMA table_info(MediaType);
PRAGMA table_info(Genre);
PRAGMA table_info(Track);
-- PRAGMA table_info(PlaylistTrack);
-- PRAGMA table_info(Playlist);
PRAGMA table_info(Employee);
PRAGMA table_info(Customer);
PRAGMA table_info(Invoice);
PRAGMA table_info(InvoiceLine);
DROP VIEW IF EXISTS TrackList;
CREATE VIEW TrackList AS
SELECT PlaylistTrack.PlaylistId,TrackId,Name
FROM PlaylistTrack
INNER JOIN Playlist on PlaylistTrack.PlaylistId = Playlist.PlaylistId;
DROP VIEW IF EXISTS ListTrack;
CREATE VIEW ListTrack AS
SELECT PlaylistId,Track.TrackId,Name,AlbumId,MediaTypeId,GenreId,Composer,Milliseconds,Bytes,UnitPrice
FROM PlaylistTrack
INNER JOIN Track on Track.TrackId = PlaylistTrack.TrackId;
PRAGMA table_info(TrackList);
PRAGMA table_info(ListTrack);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/itmgg/chinook_system.git
git@gitee.com:itmgg/chinook_system.git
itmgg
chinook_system
chinook_system
master

搜索帮助