When updating a record in MySQL, the syntax is correct, but the record is not updated... Question Statement The record before execution is as follows: The record after execution is as follows: As you can see, it actually works: why? It seems that there is no problem with the syntax. The update syntax of the MySQL official document is: Seeing that the format of assignment_list is a comma-separated list of Summary: In an UPDATE statement, if you want to update multiple fields, you cannot use "AND" between the fields, but should separate them with commas. Principle: Why does the strange result of owner_code=0 appear when "AND" is used to separate? After many attempts, I found that: And This is the end of this article about the syntax of mysql update to modify multiple fields and. For more relevant mysql update to modify field and syntax content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: vue front-end HbuliderEslint real-time verification automatic repair settings
>>: Detailed analysis of each stage of nginx's http request processing
1. First log in to the Alibaba Cloud website to r...
What is text wrapping around images? This is the ...
Table of contents Overview Property settings Proc...
Preface Sometimes when we view database data, we ...
This article shares the installation and configur...
1. Environment: CentOS7, Openssl1.1.1k. 2. Concep...
We better start paying attention, because HTML Po...
Table of contents Animation Preview Other UI Libr...
The <tfoot> tag is used to define the style...
The specific code is as follows: <!DOCTYPE htm...
Docker container connection 1. Network port mappi...
<br />From the birth of my first personal pa...
1. Install MySQL database ① Download and unzip an...
I won't say much nonsense, let's just loo...
Table of contents 1. Anti-shake function 2. Use d...