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
Mysql 8.0 installation problems and password rese...
Preface In front-end development, we often encoun...
This article example shares the specific code of ...
Many friends found that the box model is a square...
Table of contents 1. Introduction 2. Actual Cases...
What is the main function of Docker? At present, ...
If you don't have a Linux system, please refe...
Preface CSS grids are usually bundled in various ...
Starting from MySQL 8.0.16, you can set a passwor...
Preface During development, we often encounter va...
Table of contents Class Component Functional Comp...
Data URI Data URI is a scheme defined by RFC 2397...
Table of contents Introduction to bootstrap and i...
MySQL is a free relational database with a huge u...
Preface Share two methods to monitor whether an e...