SELECT TRIM(BOTH ',' FROM name) from users; /*trim leading and trailing ,*/ SELECT TRIM(LEADING ',' FROM name) from users;/*trim leading,*/ SELECT TRIM(TRAILING ',' FROM name) from users; /*trim trailing,*/