-
行轉(zhuǎn)列sql
查看全部 -
行列轉(zhuǎn)換更好的方式
查看全部 -
行轉(zhuǎn)列,用到了笛卡爾積
查看全部 -
需要轉(zhuǎn)換的場景
查看全部 -
匯總顯示的時候 行轉(zhuǎn)列場景2
查看全部 -
報(bào)表統(tǒng)計(jì)的時候行轉(zhuǎn)列
查看全部 -
select count(*)查看全部
-
刪除重復(fù)數(shù)據(jù)
查看全部 -
mysql 行轉(zhuǎn)列
查看全部 -
update user1 join
(
select id,user_name,group_concat(_mobile) as _mobile
from
(
select id,user_name,_mobile
from?
(select s.id as id,u1.id as uid,u1.user_name,substring_index(substring_index(u1._mobile,',',s.id),',',-1) as _mobile from tb_sequence s
cross join?
(select id,user_name,_over,_mobile,char_length(_mobile)-char_length(replace(_mobile,',',''))+1 as size from user1 ) u1 on s.id<=u1.size
) temp
group by user_name,_mobile
) t
group by user_name
) tt
on user1.user_name=tt.user_name
set user1._mobile=tt._mobile;
查看全部 -
重復(fù)數(shù)據(jù)刪除,保留ID最大的一位
查看全部 -
刪除重復(fù)數(shù)據(jù),保留ID號大的
查看全部
舉報(bào)