图形图标的sql语句行转列
原理就是
select
*
max(case when type="adminCount" then totalCount
else 0 end) adminCount
from
(select a
.adminCount
type,a
.totalCount
from
(select 'adminCount',count(*) totalCount
from admininfo
union all
select 'teacherCount',count(*) totalCount
from teacherinfo
常用于图形图表行转列
转载请注明原文地址:https://blackberry.8miu.com/read-13599.html