在函数 INSERT(str, Pos, len, newstr) 中,如果 len 不在字符串其余部分的长度之内,结果会是什么?

在函数 INSERT(str, Pos, len, newstr) 中,如果 len 不在字符串其余部分的长度之内,结果会是什么?

len' 不在字符串其余部分的长度内,则 MySQL INSERT() 函数将继续删除字符,直到字符串结束原始字符串。

示例

mysql> Select INSERT('myteststring',3,15,'name'); +------------------------------------+ | INSERT('myteststring',3,15,'name') | +------------------------------------+ | myname | +------------------------------------+ 1 row in set (0.00 sec)登录后复制