Skip to content

Instantly share code, notes, and snippets.

@frals
Created July 16, 2017 18:24
Show Gist options
  • Save frals/a65260f58fc9abf956103a14abf51ac2 to your computer and use it in GitHub Desktop.
Save frals/a65260f58fc9abf956103a14abf51ac2 to your computer and use it in GitHub Desktop.
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