- 字符串函数
select
device_id,
substring_index(blog_url,'/',-1) as user_name
substr(blog_url,11) as user_name
from user_submit;
- 替换函数
select
device_id,
replace('http:/url/','') as user_name
from user_submit
- 截取函数
select
device_id ,
trim('http:/url/' from blog_url) as user_name
from user_submit