- 
            
            方法一:使用cross join来实现行转列 查看全部
- 
            
            列转行 select user_name,replace(substring(substring_index(mobile,','a.id),char_length(substring_index(mobile,',',a.id-1))+1),',','') as mobile from tb_sequence as a cross join( select user_name,concat(mobile,',') as mobile,length(mobile)-length(replace(mobile,',',''))+1 as size from user1 as b) as b on a.id<=b.size 查看全部
- 
            
             dsadas查看全部 dsadas查看全部
- 
            
            行转列 cast  查看全部 查看全部
- 
            
             crooss join 行转列查看全部 crooss join 行转列查看全部
- 
            
            最终实在列转行的sql查看全部
- 
            
            列转行,最开始表的格式。查看全部
- 
            
            建立序列表 create table tb_sequence(id int auto_increment not null,primary key(id)) insert into tb_sequence values(),(),(),(),(),(),(),(),(),(),(); 查看全部
- 
            
            需要进行列转行的场景 ETL数据处理 查看全部
- 
            
            需要进行列转行的场景 属性拆分 查看全部
- 
            
            行转列数据处理sql语句 
 查看全部
- 
            
            序列表中初始化数据 create table tb_sequence(id int auto_increment not null,primary key(id)) 给自增列中初始化数据(数据多少,取决于()的多少) insert to tb_sequence values (),(),(),(),(),(); 查看全部
- 
            
            利用序列表处理列转行的数据 查看全部
举报
0/150
	提交
		取消
	 
             
         
                 
                 
                 
                