题解 | #提取博客URL中的用户名#
提取博客URL中的用户名
https://www.nowcoder.com/practice/26c8715f32e24d918f15db69518f3ad8
微博名与其他信息在同一字段中,故使用substring_index进行信息提取
select device_id, substring_index(blog_url,'/','-1') as user_name from user_submit;
提取博客URL中的用户名
https://www.nowcoder.com/practice/26c8715f32e24d918f15db69518f3ad8
select device_id, substring_index(blog_url,'/','-1') as user_name from user_submit;
相关推荐