Home > Database > Mysql Tutorial > body text

In the function INSERT(str, Pos, len, newstr), what will be the result if len is not within the length of the rest of the string?

王林
Release: 2023-08-24 17:25:05
forward
560 people have browsed it

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

If 'len' is not within the length of the rest of the string, the MySQL INSERT() function will continue to remove characters until the end of the string is original String.

Example

mysql> Select INSERT('myteststring',3,15,'name');
+------------------------------------+
| INSERT('myteststring',3,15,'name') |
+------------------------------------+
| myname                             |
+------------------------------------+
1 row in set (0.00 sec)
Copy after login

The above is the detailed content of In the function INSERT(str, Pos, len, newstr), what will be the result if len is not within the length of the rest of the string?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!