Remove part of string including a specific character from a string using MySQL

前端 未结 4 1268
轻奢々
轻奢々 2020-12-21 01:45
STACK\\HYUUM.ROOOO

I need to remove the characters left to

\'\\\'

and the result should be

HYU         


        
4条回答
  •  情书的邮戳
    2020-12-21 02:18

    I got the it :)

    select employee_id,emp_email,SUBSTRING_INDEX(user_name, '\\', -1) 
    from employee_master
    

提交回复
热议问题