算哪里的正则表达式组你可以看到什么即时尝试做的:选择并计数
select *, count(*) as count
from `songs`
where `band` REGEXP '^[^[:alpha:]]'
group by `band`
order by `band` asc
带可以是:
avenged sevenfold
3 days grace
led zeppelin
98 mute
back street boys
beastie boys
我需要这个来选择其乐队首字符不是一个alpha,并计算每个band有多少行。
不幸的是,我目前的查询似乎只是将它们全部组合在一起,与REGEXP匹配。