Advertisement
Guest User

Untitled

a guest
Jun 12th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. query = SELECT GROUP_CONCAT(CONCAT(destination_username, '@', destination_domain) SEPARATOR ' ') AS destinations FROM aliases WHERE source_username = '%u' AND source_domain = '%d' AND enabled = true GROUP BY source_domain UNION SELECT CONCAT(destination_username, '@', destination_domain) AS destinations FROM aliases WHERE source_username = '' AND source_domain = '%d' AND enabled = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement