📌  相关文章
📜  mysql 从字符串中删除第一个和最后一个字符 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:24.099000             🧑  作者: Mango

代码示例2
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,*/