##select device_id, ##substring_index(blog_url,'/',-1) as user_name ##from user_submit ##select device_id, ##replace(blog_url,'http:/url/','') as user_name ##from user_submit select device_id, trim("http:/url/" from blog_url) as user_name from user_submit