這個查詢怎么做???????
uj5u.com熱心網友回復:
問題1:select c1,count(*)
from (
select c1 from t
union all
select c2 from t
...
union all
select c7 from t) total
group by c1
order by count(*) desc;
問題2:
with recursive n(c) as(
select 1
union all
select c+1 from n where c <36
)
select * from n
where c not in
(
select c1 from t
union all
select c2 from t
...
union all
select c7 from t)
;
uj5u.com熱心網友回復:
哥,能給解釋下不……轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/31700.html
標籤:MySQL
上一篇:有大佬能解答一下第四題的第二小題,第五題,第六題的第二第三小題[face]monkey:2.gif[/face]
下一篇:hbase大批量資料查詢問題
