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
Overview An index is a table of correspondence be...
Table of contents Creating an SSL Certificate 1. ...
1. Background of Parallel Replication First of al...
First install ssh in Linux, taking centos as an e...
Table of contents 1. After downloading, unzip it ...
Case Description: - Use tables to achieve page ef...
Install memcached yum install -y memcached #Start...
I am using LDAP user management implemented in Ce...
This is the effect to be achieved: You can see th...
This article shares the specific code of Vue usin...
1. Storage Engine In the last section, we mention...
Table of contents 1. The writing order of a compl...
For sorting, order by is a keyword we use very fr...
This article uses examples to describe the operat...
(1) Server configuration: [root@localhost ~]# cd ...