Skip to content

Instantly share code, notes, and snippets.

@guanlisheng
Last active October 13, 2015 17:37
Show Gist options
  • Save guanlisheng/4231585 to your computer and use it in GitHub Desktop.
Save guanlisheng/4231585 to your computer and use it in GitHub Desktop.
Handles MySQL exclude JOIN operation.
select
a.*
from a
left join b on (a.id = b.id)
where b.id is null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment