HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Insert the string "Example" into the string "W3C". Replace the first nine characters
The INSERT() function inserts a string within a string at the specified position and for a certain number of characters.
INSERT(string, position, number, string2)
Parameter | Description |
---|---|
string | Required. The string that will be modified |
position | Required. The position where to insert string2 |
number | Required. The number of characters to replace |
string2 | Required. The string to insert into string |
Works in: | From MySQL 4.0 |
---|
Insert the string "no" into the string "W3C". Replace three characters, starting from position 11:
SELECT INSERT("W3C", 11, 3, "no");