1. Update the entire table. If the value of a column in a row of data is empty, make it equal to the value of another column field. UPDATE ot_tgbz set update_day=if(update_day is null,date,update_day);
UPDATE ot_user set xingyun_num=if(xingyun_num > 2,2,xingyun_num);
update shop_goods set thumb= replace (thumb,'https://www.jb51.net/','') where thumb like '%https://www.jb51.net/%';
$map="CAST( `UE_account` AS CHAR CHARACTER SET utf8 ) LIKE '%$data%' OR CAST( `UE_accName` AS CHAR CHARACTER SET utf8 ) LIKE '%$data%' OR CAST( `UE_truename` AS CHAR CHARACTER SET utf8 ) LIKE '%$data%' OR CAST( `UE_phone` AS CHAR CHARACTER SET utf8 ) LIKE '%$data%'"; The above summary of MySQL's special processing statements in SQL (must read) is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Vue project configures webpack-obfuscator to implement code encryption and obfuscation
>>: How to deploy tomcat in batches with ansible
Apache Tomcat is an open source software that imp...
Table of contents What is ReactHook? React curren...
1. Docker installation and startup yum install ep...
When I was looking at some CSS3 animation source ...
1. Install components yum install epel-rpm-macros...
Table of contents 1. A simplest server-side examp...
I have been working on a project recently - Budou...
Table of contents 1. Paradigm foundation 1.1 The ...
If people have been idle for too long, they will ...
The paging effect is implemented in the vue proje...
Simply pull the image, create a container and run...
This article example shares the specific code for...
Solution to the data asymmetry problem between My...
1. What is a calculated attribute? In plain words...
This article shares the specific code of the WeCh...