题解 | #提取博客URL中的用户名#
提取博客URL中的用户名
http://www.nowcoder.com/practice/26c8715f32e24d918f15db69518f3ad8
select
device_id,
SUBSTRING_INDEX(SUBSTRING_INDEX(blog_url,":",-1),"/",-1) as user_name
from
user_submit
device_id,
SUBSTRING_INDEX(SUBSTRING_INDEX(blog_url,":",-1),"/",-1) as user_name
from
user_submit