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
How to modify the style of the el-select componen...
Vue $http get and post request cross-domain probl...
Table of contents Initialize the project Writing ...
What is MyCAT A completely open source large data...
Let's learn about different types of loops th...
Table of contents 1. Custom instructions 1. Regis...
In languages, macros are often used to implement ...
1. Installation The biggest feature of Terminator...
The project has been suspended recently, and the ...
1. Why does nginx use gzip? 1. The role of compre...
It is often necessary to run commands with sudo i...
This article describes how to compile and install...
1. Purpose Through this article, everyone can und...
Table of contents 1. Global level 2. Database lev...
How to create a virtual machine on VMware and ins...