Skip to content

Instantly share code, notes, and snippets.

Created Jul 21, 2016
Embed
What would you like to do?
the description for this gist
SELECT u.id, u.name, u.is_active, d.id, d.name, d.user_id FROM users u
LEFT JOIN devices d ON u.id = d.user_id WHERE u.id = ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment