MySQL 函数 | left & distinct

mysql> select 
  count(distinct left(email,4))as L4,
  count(distinct left(email,5))as L5,
  count(distinct left(email,6))as L6,
  count(distinct left(email,7))as L7,
from SUser;

你可能感兴趣的:(MySQL 函数 | left & distinct)