MySQL Query to Count Unique Domains from Email Address field

后端 未结 7 1826
执念已碎
执念已碎 2020-12-13 02:16

I\'d like to get a better idea of what domains my customers are using. I could easily do this in PHP by explodeing each address and counting the domain that way

相关标签:
7条回答
  • 2020-12-13 02:54

    How about something like

    SELECT COUNT(DISTINCT [what you want])
    FROM MyTable
    

    COUNT(DISTINCT expr,[expr...])

    0 讨论(0)
提交回复
热议问题