题解 | #提取博客URL中的用户名#

提取博客URL中的用户名

https://www.nowcoder.com/practice/26c8715f32e24d918f15db69518f3ad8

select 
    device_id,
    substring_index(blog_url,'/',-1) as user_name
from user_submit

和上一题一样,substring_index(str,delim,count)语法:

      str:要处理的字符串

      delim:分隔符

      count:计数

https://www.cnblogs.com/mqxs/p/7380933.html

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务