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
There was a problem when installing the compresse...
This article uses an example to illustrate the me...
Overview I have recently started learning MySQL r...
1. Create a SpringBooot project and package it in...
Table of contents Effect display Component Settin...
Table of contents Preface Dynamic SQL 1. Take a l...
Table of contents Vue routing relative path jump ...
Try installing via pip in a virtual environment: ...
1. Scenario description: My colleague taught me h...
Nowadays, the screen resolution of computer monit...
Disk quota is the storage limit of a specified di...
Route Jump this.$router.push('/course'); ...
There are two types of dead link formats defined b...
Table of contents 1. Data Manipulation Language (...
First configure the project artifacts Configuring...