
or
SELECT COUNT(duration) FROM 表 group by duration
用全文索引,把字段的索引设为fulltextselect
count(*)
from
table
where
MATCH(field1)
AGAINST('aaa')
select
count(*)
from
table
where
MATCH(field1)
AGAINST('bbb')
select
count(*)
from
table
where
MATCH(field1)
AGAINST('ccc')
select
count(*)
from
table
where
MATCH(field1)
AGAINST('ddd')
目前只能想到分别查询了
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)