mysql截取,分隔之前的字符

截取第二个 '.' 之前的所有字符。

select substring_index('www,sqlstudy,com,cn', ',', 2);

参考自

https://blog.csdn.net/mlks_2008/article/details/3983981?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-8.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-8.control

posted @ 2021-07-25 12:08  northli  阅读(312)  评论(0)    收藏  举报