Instantly share code, notes, and snippets.

Embed
What would you like to do?
select `episode`.`idEpisode`
from `tvshow`, `episode`
where
`episode`.`idShow` = `tvshow`.`idShow` AND
`tvshow`.idShow = XX
into outfile '/tmp/alleps';
select `episode`.`idEpisode`
from `tvshow`, `episode`, `files`
where
`episode`.`idShow` = `tvshow`.`idShow` AND
`files`.`idFile` = `episode`.`idFile` AND
`tvshow`.idShow = XX
into outfile '/tmp/watchedeps';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment