This command modifies the data table ff_vod and adds 999999999 after the content of the vod_url field. update ff_vod set vod_url=CONCAT(vod_url,'999999999') where vod_id BETWEEN 1 AND 42553 The following statement is used to modify only the content with vod_id 1-42553. where vod_id BETWEEN 1 AND 42553 123WORDPRESS.COM editor analysis: In fact, this mainly uses the CONCAT function. The MySQL CONCAT() function is used to concatenate multiple strings into one string. The following will show you how to use the MySQL CONCAT() function. The MySQL CONCAT() function is used to concatenate multiple strings into one string. It is one of the most important MySQL functions. The following will introduce the MySQL CONCAT() function in detail for your reference. mysql CONCAT(str1,str2,…) mysql> SELECT CONCAT('My', 'S', 'QL'); -> 'MySQL' mysql> SELECT CONCAT('My', NULL, 'QL'); -> NULL mysql> SELECT CONCAT(14.3); -> '14.3' mysql CONCAT_WS(separator,str1,str2,...) mysql> SELECT CONCAT_WS(',','First name','Second name','Last Name'); -> 'First name, Second name, Last Name' mysql> SELECT CONCAT_WS(',','First name',NULL,'Last Name'); -> 'First name,Last Name' mysql CONCAT_WS() does not ignore any empty strings. (However, any NULL values are ignored). |
<<: 10 minutes to thoroughly understand WeChat applet single page application routing
>>: How to implement second-level scheduled tasks with Linux Crontab Shell script
This article example shares the specific code of ...
This article shares the specific code of JavaScri...
Table of contents 1. Introduction 2. Thought Anal...
Related Documents Part of this article is referen...
The solution to the background tiling or border br...
Use the FRAME property to control the style type ...
Setup is used to write combined APIs. The interna...
HTML validate refers to HTML validation. It is the...
Recently, I have a project that requires using ifr...
DCL (Data Control Language): Data control languag...
I searched a lot online and found that many of th...
I designed and customized a navigation bar with a...
Table of contents 1. Node builds HTTP server 2. H...
XML/HTML CodeCopy content to clipboard < input...
This article uses examples to illustrate the usag...