mysql intercept string by keyword

Reference function:

substring_index(str, keyword, position)

substring_index(被截取字符串,关键字,关键字的位置)

PS: If the keyword does not exist, the entire string is returned.

Guess you like

Origin blog.csdn.net/weixin_38106322/article/details/111600849