Skip to content

Instantly share code, notes, and snippets.

@c1982
Created July 20, 2012 14:09
Show Gist options
  • Save c1982/3150926 to your computer and use it in GitHub Desktop.
Save c1982/3150926 to your computer and use it in GitHub Desktop.
SELECT mail.mail_name,domains.name,accounts.password,domains.status
FROM domains
LEFT JOIN mail ON mail.dom_id = domains.id
LEFT JOIN accounts ON accounts.id = mail.account_id
WHERE mail.mail_name <> ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment