As shown below: update table1 as z left join table2 as zb on z.zcatId = zb.zcatId set z.zcatName = zb.zcatName where z.zcatName is null; The above MySQL update field in a table equal to the value of a field in another table 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:
|
<<: The JS hasOwnProperty() method detects whether a property is an object's own property.
>>: Linux confirms that the data disk has been uninstalled and a new custom image can be created
What is Virtual Memory? First, I will directly qu...
Table of contents Row-Column Conversion Analyze t...
Ubuntu 16.04 installs the PHP7.0 environment by d...
When you log in to MySQL remotely, the account yo...
Problem description (environment: windows7, MySql...
Preface Basically, programmers in the workplace u...
In Black Duck's 2017 open source survey, 77% ...
This article example shares the specific code of ...
Abstract: Analysis of two MySQL SQL statement loc...
1. Why do we need to divide tables and partitions...
CSS3 -- Adding shadows (using box shadows) CSS3 -...
1. Briefly describe the traditional LRU linked li...
This article shares the specific code of JavaScri...
The main function of a calculator is to perform n...
Table of contents 1. IDEA downloads the docker pl...