时间:2021-07-01 10:21:17 帮助过:5人阅读
select a.fenlei, count(*), count(*)/(select count(*) from test)*100 as percentage, constitutefrom test a, (select fenlei, group_concat(mc,',',cnt) as constitute from(select fenlei, mc, count(*) as cnt from test group by 1,2) t group by 1) t1where a.fenlei=t1.fenlei group by 1
数据库设计的太刁了
数据库设计的太刁了
你有什么好的建议。
mc是什么的缩写呀,名称?名次?
------------------------------------------------------AutoCSDN签名档------------------------------------------------------
码农场??码农播种代码、放牧思想的农场!