Skip to content

user substring

Rayhan Uddin edited this page Oct 3, 2017 · 2 revisions
SELECT SUBSTRING_INDEX(CURRENT_USER(),'@',1);

or
SELECT SUBSTRING_INDEX(CURRENT_USER(),'@',-1);
Clone this wiki locally