SUBSTRING_INDEX() 函数返回指定数量的分隔符出现之前的字符串的子字符串。
SUBSTRING_INDEX(
string,
delimiter,
number)
Parameter | Description |
---|---|
string | Required. The original string |
delimiter | Required. The delimiter to search for |
number | Required. The number of times to search for the delimiter. Can be both a positive or negative number. If it is a positive number, this function returns all to the left of the delimiter. If it is a negative number, this function returns all to the right of the delimiter. |
工作于: | 从 MySQL 4.0 开始 |
---|
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!